Changed routeen and made ajustments.
Added untested code for final cube.