initial attempt to save the map. Needs to be changed.