Finished saveMap method