public static void save() {
        JFileChooser fileChooser = new JFileChooser();
        fileChooser.showSaveDialog(null);
        try {
            PrintWriter fichierSauvegarde = new PrintWriter(new FileOutputStream(fileChooser.getSelectedFile()));
            fichierSauvegarde.print(grid.dump());
            fichierSauvegarde.close();
        }
        catch (FileNotFoundException|NullPointerException ex) {
            
        }
    }