import java.util.*;
import java.io.*;

public class Util
{
    public static final String PLAYER_DESIGNATOR = "Player ";

    public static final Deck[] loadRules (String inputFile, boolean debug)
    {
        /*
         * Open the data file and read it in.
         */

        BufferedReader reader = null;
        Deck[] decks = new Deck[2];
        int player = 0;

        decks[0] = new Deck(1);
        decks[1] = new Deck(2);

        try
        {
            String line = null;

            reader = new BufferedReader(new FileReader(inputFile));

            while ((line = reader.readLine()) != null)
            {
                System.out.println("loaded "+line+" for "+player);

                if (line.startsWith(PLAYER_DESIGNATOR))
                {
                    player = Integer.parseInt(line.substring(PLAYER_DESIGNATOR.length(), line.indexOf(':')));
                }
                else
                {
                    try
                    {
                        int value = Integer.parseInt(line);

                        decks[player].add(value);
                    }
                    catch (Exception ex)
                    {
                        // for the blank line
                    }
                }
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }

        return decks;
    }

    // prevent instantiation

    private Util ()
    {
    }
}
@@ -627,76 +627,8 @@
   %7B%0A
-                System.out.println(%22loaded %22+line+%22 for %22+player);%0A%0A
     
@@ -679,16 +679,16 @@
 NATOR))%0A
+
         
@@ -806,16 +806,122 @@
 (':')));
+%0A%0A                    if (debug)%0A                        System.out.println(%22Loading for player %22+player);
 %0A       
@@ -1073,24 +1073,146 @@
 Int(line);%0A%0A
+                        if (debug)%0A                            System.out.println(%22Adding %22+value+%22 to player %22+player);%0A%0A
             
@@ -1235,16 +1235,19 @@
 s%5Bplayer
+ -1
 %5D.add(va

Update Util.java