public void saveScore(String pseudo, int time, Calendar date, String gD) {
        Score newScore = new Score(pseudo, time, date);
        ObjectOutputStream os = null;
        try {
            this.removeLastElement();
            os = new ObjectOutputStream(new FileOutputStream(gD+".ser", false));
            bestScores.add(newScore);
            Collections.sort(bestScores);
            os.writeObject(bestScores);
        } catch (IOException ioEx) {
            Logger.getLogger(ScoresModel.class.getName()).log(Level.SEVERE, null, ioEx);
        } finally {
            if (os != null) {
                try {
                    os.close();
                } catch (IOException ex) {
                    Logger.getLogger(ScoresModel.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }
    }