Considering every permutation of groups, rather than random ones