Validate selectTile so that it obeys the bounds of the map