A classic Snake game in JavaScript with HTML5 canvas