Threshold 80 sLeftNum 275169 sFrontNum 287522 sRightNum 287517 sBackNum 190224 case 0 lastTurn 0 This code goes to the left. For more code details refer to MazeRunner1.cubelet 255 LT sFrontNum Threshold 255 LT sLeftNum Threshold WHILE GT sFrontNum Threshold 255 200 lastTurn 1 LT sRightNum Threshold WHILE GT sFrontNum Threshold 0 200 lastTurn 2 WHILE EQ case 0 255 AND LT sLeftNum Threshold NEQ lastTurn 1 case 1 AND LT sRightNum Threshold NEQ lastTurn 2 case 2 GTE sBackNum Threshold case 3 case 0 450 EQ case 1 LT sRightNum Threshold 600 WHILE GTE sRightNum Threshold 255 100 lastTurn 1 EQ case 2 WHILE GTE sLeftNum Threshold 0 0 100 lastTurn 2 255 lastTurn 0 case 0