How does Conectaballs work?

Pyramid

Cube

Pyramid

solution

Cube

solution