public void actionPerformed(ActionEvent e) {
		int val;
		
		
		if (e.getSource() == helpItem){
			timer.stop();// pause timer
			JOptionPane.showMessageDialog(this, helpString, "Help",
					JOptionPane.INFORMATION_MESSAGE);
			timer.start();// pause timer
		} else if (e.getSource() == aboutItem){
			timer.stop();// pause timer
			JOptionPane.showMessageDialog(this, infoString, "Information",
					JOptionPane.INFORMATION_MESSAGE);
			timer.start();// pause timer
		} else if (e.getSource() == exitItem) {
			timer.stop();// pause timer
			val = JOptionPane.showConfirmDialog(this, endString, "Game End",
					JOptionPane.YES_NO_CANCEL_OPTION,
					JOptionPane.QUESTION_MESSAGE);
			if (val == JOptionPane.YES_OPTION)
				System.exit(0);
			timer.start();// pause timer
		} else if (e.getSource() == resetItem || e.getSource() == resetButton) {
			resetGame();
		} else if (e.getSource() == timer) {
			timeElapsed += 0.05;
			timerText.setText("" + String.format("%.2f",timeElapsed));
		}else if (e.getSource() == toptenItem) {
			timer.stop();// pause timer
			JOptionPane.showMessageDialog(this, scoresAsString(), "Scores",
					JOptionPane.INFORMATION_MESSAGE);
			timer.start();
		}
	}