update to snake cubed

code fix