Refactored the way the map is painted