started implementing saving for the map editor