public void LoadScores(String gD) {
        bestScores = new LinkedList();
        File file = new File(gD+".ser");
        if (file.exists()) {
            ObjectInputStream os = null;
            try {
                os = new ObjectInputStream(new FileInputStream(file));
                bestScores = (List<Score>) os.readObject();
            } catch (IOException | ClassNotFoundException ex) {
                Logger.getLogger(ScoresModel.class.getName()).log(Level.SEVERE, null, ex);
            }
            finally {
                if (os != null) {
                    try {
                        os.close();
                    } catch (IOException ex) {
                        Logger.getLogger(ScoresModel.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }
            }
        }
    }