IsValidTile: checking if a given tile is valid or not
Getting the tile at a given position