Refactored snakecube and removed unused old code