updated code to run all BLDC motors