Make all_arrangements_within_group be a generator
Make all_arrangements a generator