Fixed bug that crashes the game when you click on the tile to be placed.