Solves puzzles where pieces are made up of smaller cubes