 		break;
 
 	case right:
-		lightLed(3);
+		ledDirection(right);
 
 		moveBothMotors(maxMotorSpeed, forward, maxMotorSpeed, backward);
 		checkForNewLineOnSide(right);

		break;

	case backward:
		lightLed(2);
		lightLed(3);

		moveBothMotors(maxMotorSpeed, forward, maxMotorSpeed, backward);
		checkForNewLineOnSide(right);
		break;

	case left:
		lightLed(2);

		moveBothMotors(maxMotorSpeed, backward, maxMotorSpeed, forward);
		checkForNewLineOnSide(left);
		break;

	case forward:
		lightLed(0);

		posPropotionalToMid = position - 2500;


unsigned char getNumberOfCurrentlyWhiteSensors()
{
	unsigned char currentlyWhiteSensors = 0;
	for (unsigned char i = 0; i < sizeof(sensorPins); i++)
	{
		if (sensorValues[i] < threshold)
		{
			currentlyWhiteSensors++;
		}
	}
	return currentlyWhiteSensors;
}
