duplicate for the motorRotateDegree() code removed