public class Lesson2 { public static void run() { // this method solves the maze Robot.load("maze.txt"); Util.pause(4); // just for TOM Robot.move(); Robot.move(); // "calling" the move method Robot.move(); Robot.move(); Robot.turnLeft(); Robot.move(); Robot.move(); Lesson2.turnRight(); Lesson2.turnAround(); // etc.... } public static void turnRight() { Robot.turnLeft(); Robot.turnLeft(); Robot.turnLeft(); } public static void turnAround() { Lesson2.turnRight(); Lesson2.turnRight(); } public static void backUp() { Lesson2.turnAround(); Robot.move(); Lesson2.turnAround(); } }