@Override
	public void actionPerformed(ActionEvent evt)
	{
		if (evt.getActionCommand().equals("Save As")) {
			chooser = new JFileChooser();
			chooser.setSelectedFile(new File("leaderboard-recording.txt"));

			if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {
				recorderFile.setText(chooser.getSelectedFile().toString());
				startStop.setEnabled(true);
			}
		} else if (evt.getActionCommand().equals("Start")) {
			startStop.setText("Stop");
			recorderFile.setEnabled(false);
			selectFileButton.setEnabled(false);
			recorder = new Recorder(recorderFile.getText());
			mainFrame.setRecorder(recorder);

		} else if (evt.getActionCommand().equals("Stop")) {
			mainFrame.removeRecorder();
			recorder.close();
			startStop.setText("Start");
			recorderFile.setEnabled(true);
			selectFileButton.setEnabled(true);

		}
	}