make sure only cubes with the same chain at the same step will be grouped together
can't just skip type 4 (full surrounded) chain cubes