@Override
	public void run() {
		while(running){
			// Here goes the things that should be updated constantly...
			gamePanel.repaint();
			
			if(!audio.isPlaying()){
				audio.setPlaying(true);
				audio.startPlaying(BACKGROUND_MUSIC);
			}
			
			try {Thread.sleep(10);} catch (InterruptedException e) {e.printStackTrace();}
			
			if(!engine.getAlive())
			{
				int choice = JOptionPane.showConfirmDialog(this, "You died! Do you want to play again?", "Game over!", JOptionPane.YES_NO_OPTION);
				if(choice == JOptionPane.YES_OPTION)
				{
					this.dispose();
					running = false;
					audio.stopMusic();
					Main.main(null);
				}
				else
				{
					System.exit(0);
				}
			}
		}	
	}