Edited moveMotor function to only control one motor at a time.