successfully builds 8 edges
Added another algo for edges
added memory on the cube to be able to restore problematic states