Detecting swipes and determining whether we have two friends to swap.