public void submitNewScore() {
        for (Component p : getParent().getComponents()) {
            if (p instanceof LeaderboardsPanel) {
                ((LeaderboardsPanel) p).addScore(name, finalScore[4]);
                newHighScore = ((LeaderboardsPanel) p).isNewHighscore(finalScore[4]);
            }
        }
    }