TileSelector broken code