implemented primitive restart (I hope)
cube finished