H bridge and polarity in a motor