Started coding the cube legality check