Revised driveForward with switch and case.