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();
        decks[1] = new Deck();
        
        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
                {
                    int value = Integer.parseInt(line);

                    decks[player].add(value);
                }
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }

        return decks;
    }

    // prevent instantiation

    private Util ()
    {
    }
}
@@ -427,24 +427,16 @@
 Deck();%0A
-        
 %0A       
@@ -922,32 +922,82 @@
               %7B%0A
+                    try%0A                    %7B%0A    
                 
@@ -1053,24 +1053,28 @@
             
+  
+  
 decks%5Bplayer
@@ -1087,16 +1087,169 @@
 value);%0A
+                    %7D%0A                    catch (Exception ex)%0A                    %7B%0A                        // for the blank line%0A                    %7D%0A
         

Update Util.java