public boolean saveFile(ArrayList<Game> liste)
    { 
        PrintWriter pw;
        
        try
        {
            pw = new PrintWriter("words.txt");
            
            for (int i = 0; i < liste.size(); i++)
            {
                pw.print(liste.get(i).toSaveString());
                System.out.println(liste.get(i).toSaveString());
            }
            
            pw.close(); 
        }
        
        catch (FileNotFoundException ex)
        {
            System.out.println("Fejl: " + ex.getMessage());
        return false;
        }
    return true;}