divides people into pairs, threes, and other teams