@Override
	public void actionPerformed(ActionEvent e) {
		JButton buttonPressed = (JButton)(e.getSource());
		
		if(buttonPressed == view.getButtonArray()[MAINMENU]){
			//Main Menu
			mainFrame.getLayeredPane().remove(view);
			mainFrame.repaint();
			launcher.reset();
		}else if(buttonPressed == view.getButtonArray()[EXITGAME]){
			//Exit
			launcher.exit();
		}else if(buttonPressed == view.getButtonArray()[RESUME]){
			//Resume
			mainFrame.getLayeredPane().remove(view);
			mainFrame.repaint();
			if(mainFrame != null){
				mainFrame.setEnabled(true);
				mainFrame.setFocusable(true);
				mainFrame.requestFocus();
			}
		}
	}