A simple snake game in JavaScript