Restructured the map loading and tile management