Yet another snake game in JavaScript