@@ -0,0 +1,543 @@
+package a1;%0A%0Aimport lejos.nxt.*;%0Aimport lejos.robotics.subsumption.*;%0A%0A/**%0A * Craig Brennan C12434322%0A * Brandon Murnane C13377256%0A *%0A *%0A * Moves forward until a light surface is detected underneath.%0A */%0Apublic class DetectLight implements Behavior %7B%0A%09%0A%09private LightSensor light;%0A%09private boolean suppressed = false;%0A%09%0A%09public DetectLight(SensorPort port)%7B%0A%09%09light = new LightSensor(port);%0A%09%7D%0A%09%0A%09public boolean takeControl() %7B%0A%09%09return true;%0A%09%7D%0A%09%0A%09public void suppress() %7B%0A%09%09LCD.clear();%0A%09%09suppressed = true;%0A%09%7D%0A%09%0A%09public void action() %7B%0A%09%7D%0A%7D

Set up DetectLight behavior