private void saveStats() {
        int nameScoreDate = 0; ///< Names = 0, Scores = 1, Dates = 2
        int j; ///< Line in leaderboard
        try {
            bfw = new BufferedWriter(new FileWriter(statsFile));
            for (int i = 0; i < (leaderboard.length * leaderboard[0].length); i++) {
                j = i % 10;
                if (i == leaderboard.length || i == leaderboard.length * 2) {
                    nameScoreDate++;
                }
                bfw.write(leaderboard[j][nameScoreDate]);
                bfw.newLine();
            }
            bfw.close();
        } catch (IOException ex) {
            JOptionPane.showMessageDialog(this, "File not found!", "Error", JOptionPane.ERROR_MESSAGE);
        }
    }