public void actionPerformed(ActionEvent a) {
		Object b = a.getSource();
		if (b == maj) {
			Game.gamedata.set_majmin(true);
		}
		if (b == min) {
			Game.gamedata.set_majmin(false);
		}
		if (b == reset) {
			Game.gamedata.set_bpm(120);
			speed.setValue(120);
			speedL.setText("Speed: 120 bpm");
			Game.gamedata.set_difficulty(4);
			diff.setValue(4);
			Game.suggest = false;
			diffL.setText("Difficulty: 4");
			Game.gamedata.set_key(0);
			key.setValue(0);
			keyL.setText("Key: " + Interpreter.get_note(key.getValue()));
			Game.gamedata.set_majmin(true);
			maj.setSelected(true);
			chord.reset();
			chordhelper.setSelected(false);
			Game.p.eraseChord();
			computer.setSelected(true);
			Game.suggest = false;
			Game.melody = true;
			Game.p.eraseAllTheThings();
		}
		
		if (b == chordhelper) {
			if (chordhelper.isSelected())Game.suggest = true;
			if (!chordhelper.isSelected()) {
				Game.p.eraseChord();
				Game.suggest = false;
			}
		}
		if (b == computer) {
			if (computer.isSelected()) Game.melody = true;
			else Game.melody = false;
		}

		else if (b == exit) {
			System.exit(0);
		}
	}