Modify save_map to return whether it was succesful