 {
   pathLength++;
   
-  if(pathLength < 3 || path[pathLength-2] != back)
+  if(pathLength < 3 || path[pathLength-2] != backward)
     return;
 
   int totalAngle = 0;


		moveBothMotors(maxMotorSpeed, forward, maxMotorSpeed, backward);
		checkForNewLineOnSide(right);
    path[pathLength]= back;
    simplifyMaze();      
		break;


	int motorSpeed;
	int posPropotionalToMid;

	//direction = forward;

	turnOffAllLeds();
