partial solution to cube square