GetTileFromCoordinates function added.