This is how the thing is built
Click for full size
There is a motor at a shaft in the center that turns the ball. Each end of the motor has a servo arm. One arm goes to a weight at the bottom. The arm moves the weight to choose direction. The other arm positions the head. The head and arm are not directly connected. At the end of that arm is magnets. The head has metal base and ball bearings on the bottom.

