When we call `find_pairings` for second time. It is getting stuck in infinite loop
When we call
find_pairingsfor second time. It is getting stuck in infinite loop