Add a snake example that uses three.js.
Clean code a bit.