Implementation of Swaping logic with left and right controller