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

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

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

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

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

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

        /*
         * Open the data file and read it in.
         */

        BufferedReader reader = null;
        String[] values = null;

        try
        {
            reader = new BufferedReader(new FileReader(INSTRUCTIONS));
            String line = null;

            while ((line = reader.readLine()) != null)
            {
                values = line.split(Intcode.DELIMITER);
            }
        }
        catch (Throwable ex)
        {
            ex.printStackTrace();
        }
        finally
        {
            try
            {
                reader.close();
            }
            catch (Throwable ex)
            {
            }
        }

        Vector<String> instructions = new Vector<String>();

        instructions.addAll(Arrays.asList(values));

        RepairDroid droid = new RepairDroid(instructions, debug);

        if (stepsToOxygen)
        {
            int steps = droid.moveToOxygenStation();

            System.out.println("Number of steps to reach oxygen station: "+steps);
        }
        else
        {
            droid.mapEntireMaze();
            droid.printGrid();
        }
    }
}
@@ -1769,16 +1769,331 @@
 tGrid();
+%0A%0A            Coordinate coord = droid.oxygenStationLocation();%0A            int%5B%5D dimensions = droid.getMaze().getDimensons();%0A%0A            System.out.println(%22Oxygen station: %22+coord);%0A            System.out.println(%22Maze dimensions: %3C%22+dimensions%5B0%5D+%22, %22+dimensions%5B2%5D+%22%3E %3C%22+dimensions%5B1%5D+%22, %22+dimensions%5B3%5D+%22%3E%22);
 %0A       

Update RemoteControl.java