public void actionPerformed(ActionEvent arg0) {
			if(arg0.getSource() instanceof JMenuItem) {
				JMenuItem item = (JMenuItem) arg0.getSource();
				if(item.getText().equals("Preferences...")) {
					if(options == null) {
						options = new OptionsManager(model);
					}
					options.setVisible(true);
				} else if(item.getText().equals("Quit")) {
					System.exit(0);
				} else if(item.getText().equals("About YAMG...")) {
					aboutView.setVisible(true);
				} else if(item.getText().equals("Enter a cheat code...")) {
					String result = JOptionPane.showInputDialog(frame,
							"Enter a cheat code!", "Oh boy...", 1);
					if(result != null) {
						result = result.trim().toLowerCase();
						options.addCheat(result);
					}
				} else if(item.getText().equals("Save Game As...")) {
					JFileChooser fileChooser = new JFileChooser();
					fileChooser.addChoosableFileFilter(new FileNameExtensionFilter(
							"YAMG save files", "yamg"));
					fileChooser.showSaveDialog(frame);
					File file = fileChooser.getSelectedFile();
					try {
						FileOutputStream fs = new FileOutputStream(file);
						ObjectOutputStream os = new ObjectOutputStream(fs);
						os.writeObject(model);
						os.close();
					} catch (FileNotFoundException e) {
						e.printStackTrace();
					} catch (IOException e) {
						e.printStackTrace();
					}
				} else if(item.getText().equals("Open Game...")) {
					JFileChooser fileChooser = new JFileChooser();
					fileChooser.addChoosableFileFilter(new FileNameExtensionFilter(
							"YAMG save files", "yamg"));
					fileChooser.showOpenDialog(frame);
					File file = fileChooser.getSelectedFile();
					try {
						FileInputStream fs = new FileInputStream(file);
						ObjectInputStream is = new ObjectInputStream(fs);
						model.getView().setVisible(false);
						Yamg controller = model.getController();
						controller.runApplication();
						model = (GameModel) is.readObject();
						is.close();
					} catch (FileNotFoundException e) {
						e.printStackTrace();
					} catch (IOException e) {
						e.printStackTrace();
					} catch (ClassNotFoundException e) {
						e.printStackTrace();
					}
				} else if(item.getText().equals("New Game")) {
					model.getView().setVisible(false);
					Yamg controller = model.getController();
					controller.runApplication();
				}
			}
			model.doRefresh();
		}