Solving the 3D bamboo ball (diamond) puzzle