public void addScore(String name, int score) {
        date = new Date();
        if (isNewHighscore(score)) {
            leaderboard[9][0] = name;
            leaderboard[9][1] = Integer.toString(score);
            leaderboard[9][2] = dateFormat.format(date);
            sortLeaderboards();
            repaint();
        }
        saveStats();
    }