recognizes if clicked on the correct shape