Added saving and loading of the map.