Update MotorController.java

let me know if there need to be any changes