@Override
		public void keyReleased (KeyEvent a) {
			input = a.getKeyChar();
			if (!(a.getKeyCode() == KeyEvent.VK_BACK_SPACE)) {
				if (checkInput (input)) {
					int reply = JOptionPane.showConfirmDialog(null, "Confirm input of " + input + " ?");
					if (reply == JOptionPane.YES_OPTION) {
						if ((AI.determineIfFinished()) == false) {
				    		switchTurns();
				    		if ((AI.determineIfFinished()) == true) {
				    			timer.stop();
					    		computeStats();	
					    		reply = JOptionPane.showConfirmDialog(null, "Would you like to return to the Main Menu?");
					    		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");
								}
					    		dispose();
					    	}
				    	} else {
				    		timer.stop();
				    		computeStats();	
				    		reply = JOptionPane.showConfirmDialog(null, "Would you like to return to the Main Menu?");
				    		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");
							}
				    		dispose();
				    	}
					} else {
						JTextField temp = (JTextField) a.getSource();
						temp.setText("");
					}
				} else {
					JTextField temp = (JTextField) a.getSource();
					temp.setText("");
					JOptionPane.showMessageDialog(null,"Please enter a digit from 1 to 9", "Invalid Move", JOptionPane.ERROR_MESSAGE);
				}
			}
		}