Simple snake clone build with p5.js: https://p5js.org/ this only runs on webserver because of the preload function ins sketch.js that loads assets. Demo