click on a square to open