implemented save and load map file