Create learnedWheelToWheel function to reduce duplicated code
Refactor the first two learning steps into separate functions