tileMap functionality fixed