Detect click on square