Improved reading the tile map