Implement clicking on square to create element