Fixed a bug when trying to select coordinates beyond game grid boundaries