 		break;
 
 	case backward:
-		lightLed(2);
-		lightLed(3);
+		ledDirection(backward);
 
 		moveBothMotors(maxMotorSpeed, forward, maxMotorSpeed, backward);
 		checkForNewLineOnSide(right);
 		break;
 
 	case left:
-		lightLed(2);
+		ledDirection(left);
 
 		moveBothMotors(maxMotorSpeed, backward, maxMotorSpeed, forward);
 		checkForNewLineOnSide(left);
 		break;
 
 	case forward:
-		lightLed(0);
+		ledDirection(forward);
 
 		posPropotionalToMid = position - 2500;
 

	else
	{
		if (getNumberOfCurrentlyWhiteSensors() == 0)
		{
			printPath();
			direction = none;
		}
		else
		{

		Serial.println(path[i]);
	}
	Serial.println("+++++++++++++++++");
}

void printPathLed()
{
	turnOffAllLeds();
	moveBothMotors(0, forward, 0, forward);
	for (unsigned int i = 0; i < pathLength; i++)
	{
		delay(500);
		ledDirection(path[i]);
		delay(1000);
		turnOffAllLeds();
	}
}
#pragma endregion