public static void saveGame(Player player) {
        try {
            FileOutputStream fileOut = new FileOutputStream(SAVE_DIRECTORY + "\\" + player.getName() +".sav");
            ObjectOutputStream out = new ObjectOutputStream(fileOut);
            out.writeObject(player);
            out.close();
            fileOut.close();
            JOptionPane.showMessageDialog(null, "Saved game!");

        }
        catch(IOException i) {
            i.printStackTrace();
        }
    }