Fixed bug when clicking on empty tiles.