public GameOverJPanel(int score) {
	this.score = score;
	
        backgroundImage = new ImageIcon("res/Gameover.jpg").getImage();
        this.repaint();

	String str = "Score: " + score;
	scoreLabel = new JButton(str);
        playAgainButton = new JButton("Play Again?");
	backToMenuButton = new JButton("Go back to Main Menu");
	/** Do not want to add the 'Save Score' button if a score of zero occurs **/
	if(score != 0){
	    saveScoreLabel = new JButton("Save Score");
	    this.add(saveScoreLabel);
	}
        this.add(scoreLabel);
        this.add(playAgainButton);
        this.add(backToMenuButton);

        /** Event Listeners **/
        playAgainButton.addMouseListener(new MouseAdapter() {
		@Override
		public void mouseReleased(MouseEvent e) {
		    CountryRunnerGui.setCurrentPanelTo(new CountryRunnerJPanel());
		}
	    }); 
        backToMenuButton.addMouseListener(new MouseAdapter() {
		@Override
		public void mouseReleased(MouseEvent e) {
		    CountryRunnerGui.setCurrentPanelTo(new CountryRunnerTitleScreen());
		}
	    });
	if(saveScoreLabel != null){
	    saveScoreLabel.addMouseListener(new MouseAdapter(){
		    @Override
		    public void mouseReleased(MouseEvent e){
			String str = (String)JOptionPane.showInputDialog(null, "Input Name", "Username", JOptionPane.INFORMATION_MESSAGE, null, null,"Name");
			if (!str.isEmpty()) {
			    name = str;

			    //save score to score system
			    ScoreSystem ss = new ScoreSystem();
			    try{
				ss.loadScores();
			    }catch(Exception q){}
			    Score s = new Score (score, name, CountryRunnerTitleScreen.difficulty);
			    ss.addScore(s);
			    try{
				ss.saveScores();
			    }catch(Exception q){}
			}
		    }
		});
	}
	
    }