Solution for Snake Cube http://en.wikipedia.org/wiki/Snake_cube