Added pinMode setting to the HBridge code to fix the stopMotor() function