 
 		moveBothMotors(maxMotorSpeed, backward, maxMotorSpeed, forward);
 		checkForNewLineOnSide(left);
+		
+		path[pathLength]= left;
+    simplifyMaze();
 		break;
 
 	case forward:

	diversionCheckingStartTime = millis();
}

#pragma endregion

void printSensorValues()


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