import java.util.*;

public class TractorBeam
{
    public static final String INSTRUCTIONS = "instructions.txt";

    public static final int SPACE_SIZE = 50;

    public static final void main (String[] args)
    {
        boolean debug = false;

        for (int i = 0; i < args.length; i++)
        {
            if ("-help".equals(args[i]))
            {
                System.out.println("Usage: [-debug] [-help]");
                System.exit(0);
            }

            if ("-debug".equals(args[i]))
                debug = true;
        }

        Vector<String> values = IntcodeUtil.readValues(INSTRUCTIONS);
        Intcode computer = new Intcode(values, debug);
    }

    private TractorBeam ()
    {
    }
}
@@ -628,54 +628,658 @@
     
-Intcode computer = new Intcode(values, debug);
+int count = 0;%0A%0A%09    for (int x = 0; x %3C SPACE_SIZE; x++)%0A        %7B%0A%09        for (int y = 0; y %3C SPACE_SIZE; y++)%0A            %7B%0A                Intcode computer = new Intcode(values, debug);%0A%0A%09%09        computer.setInputs(%22%22+y, %22%22+x);%0A%09%09        computer.executeProgram();%0A%0A                Vector%3CString%3E outputs = computer.getOutputs();%0A                Enumeration%3CString%3E iter = outputs.elements();%0A%0A                while (iter.hasMoreElements())%0A                %7B%0A                    String value = iter.nextElement();%0A%0A                    if (DroneStatus.BEING_PULLED.equals(value))%0A                        count++;%0A                %7D%0A%09%09    %7D%0A%09    %7D
 %0A   

Update TractorBeam.java