Animating rotation of object around another object

Yea I found some but I don’t seem to understand how the rotation works in Basic Rubiks cube. I made some changes to my playground: https://playground.babylonjs.com/#B6TPPB#11

I simplified the example by using a 2x2x2 cube. Somehow it seems as if the parts of the rubiks cube are rotated an additional time. I don’t know what is causing this behaviour