@Override
	public void actionPerformed(ActionEvent e) {
		if(e.getActionCommand().equals("pause")){
			game.stopGame();
		}
		else if(e.getActionCommand().equals("restart")){
			game.stopGame();
			if(game.isEnabled()){
				if(JOptionPane.showConfirmDialog(this, "Are you sure you want to restart the game?",
					"Restart", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)
					restart();
			}
			else
				restart();
		}
	}