Adds the CartTracker class and adds the getDirection function to the MotorDriver class