Divide puzzles into groups