Rubik's snake implementation using phoria.js