public void backToMenu () {
        /* uses if and else statements to check what the user would like to do */
		int reply = JOptionPane.showConfirmDialog(null, "Would you like to return to the Main Menu?");
		if(reply == JOptionPane.YES_OPTION) {
			timer.stop();
			reply = JOptionPane.showConfirmDialog(null, "Would you like to see the solution?");
			if(reply == JOptionPane.YES_OPTION) {
				MainMenu menu = new MainMenu(1000,800, user);
				menu.setSize(1000,800);
				menu.setVisible(true);
				menu.setTitle("CSE360 Sudoku Main Menu");
				ShowSolution solution;
				switch(difficulty) {
                /* Uses case statements to load the solution */
				case "Easy":
					solution = new ShowSolution("easy9x9Solution.txt","9x9");
					solution.setTitle("Easy 9x9 Solution");
					break;
                        
				case "Medium":
					solution = new ShowSolution("medium9x9Solution.txt", "9x9");
					solution.setTitle("Medium 9x9 Solution");
					break;
                        
				case "Hard":
					solution = new ShowSolution("hard9x9Solution.txt", "9x9");
					solution.setTitle("Hard 9x9 Solution");
					break;
                        
				default:
					solution = new ShowSolution("evil9x9Solution.txt", "9x9");
					solution.setTitle("Evil 9x9 Solution");
					break;
				}
				solution.setSize(500,500);
				solution.setVisible(true);
				solution.setResizable(false);
				dispose();
			} else {
				MainMenu menu = new MainMenu(1000,800, user);
				menu.setSize(1000,800);
				menu.setVisible(true);
				menu.setTitle("CSE360 Sudoku Main Menu");
				dispose();					
			}
		}		
	}