Added file checks and added reset functionality to the map