Complex sentence: The way the algorithm works is by restricting the positions of the cubes into groups of cube positions that can be solved using a certain set of moves.
Split into simpler sentences: The way the algorithm works is by restricting the positions of the cubes into groups. Each group represents a group of cube positions that can be solved using a certain set of moves.