Solve a 3d puzzle