@Override
	public void actionPerformed(ActionEvent e) {
		
		if(e.getSource() == startStop){
			if(playing){
				playing = false;
				startStop.setText("Start playing");
				backButton.setEnabled(true);
				stopMelody();
			} else if(!playing) {
				playing = true;
				startStop.setText("Stop playing");
				backButton.setEnabled(false);;
				startMelody();
			}
		} else if(e.getSource() == backButton){
			backButtonPressed();
		}
		
	}