Refactor 'wheels' and 'learnedWheels' not to be global variables