import java.util.*;

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

    public static final int SPACE_SIZE = 100;

    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);
    }

    private TractorBeam ()
    {
    }
}
@@ -617,16 +617,935 @@
 TIONS);%0A
+        Grid theGrid = new Grid(values, debug);%0A%09    int sizeOfGrid = theGrid.getBeamGrid().size();%0A%0A%09    for (int i = 0; i %3C sizeOfGrid; i++)%0A        %7B%0A%09       CoordinatePair row = theGrid.getBeamGrid().get(i);%0A           Coordinate leftCoord = row.getLeft();%0A           Coordinate rightCoord = row.getRight();%0A%0A%09        if (i %3C sizeOfGrid - (SPACE_SIZE - 1))%0A            %7B%0A                for (int j = leftCoord.getX(); j %3C= rightCoord.getX() - (SPACE_SIZE - 1); j++)%0A                %7B%0A                    CoordinatePair nextRow = theGrid.getBeamGrid().get(i + (SPACE_SIZE - 1));%0A%0A                    if (j %3E= nextRow.getLeft().getX() && j %3C= nextRow.getRight().getX())%0A                    %7B%0A                        int xMult = j * 10000;%0A%0A                        System.out.println(%22Value obtained: %22+(xMult + leftCoord.getY()));%0A                        System.exit(0);%0A%09%09            %7D%0A%09%09        %7D%0A%09        %7D%0A%09    %7D%0A
     %7D%0A%0A 

Update TractorBeam.java