refactored motors and pins to array, implemented setMotorSpeed()