Update snake.js