TileMapRenderer and bug fixes