Added implementation for saving and loading instance state for MazeGame.java.