added the functionality for the left-right motor