@Override
		public void actionPerformed(ActionEvent e) {
			if(e.getSource() == pause)
				viewingCanvas.togglePause();
			if(e.getSource() == help) {
				viewingCanvas.pause();
				JOptionPane.showMessageDialog(null, helpText, "Help", JOptionPane.INFORMATION_MESSAGE);
				viewingCanvas.unpause();
			}
			if(e.getSource() == newGame) {
				viewingCanvas.newGame();
				viewingCanvas.unpause();
				viewingCanvas.update();
				OptionPanel.this.update();
			}
			if(e.getSource() == cheatCode) {
				viewingCanvas.pause();
				String code = JOptionPane.showInputDialog(null, "Enter code",
						"Cheat Code", JOptionPane.QUESTION_MESSAGE);
				viewingCanvas.unpause();
				if(code == null) return;
				if(code.equals("QEUPDOWN"))
					CheatCodes.QEUPDOWN = !CheatCodes.QEUPDOWN;
				if(code.equals("OVER9000"))
					CheatCodes.OVER9000 = !CheatCodes.OVER9000;
				if(code.equals("LOCKENTER"))
					CheatCodes.LOCKENTER = !CheatCodes.LOCKENTER;
				if(code.equals("GRAYVIEW"))
					CheatCodes.GRAYVIEW = !CheatCodes.GRAYVIEW;
				update();
			}
		}