Update to move a motor in C++