Fixed issues with moveMotor method.