A version of the snake game that used to be shipped on old phones. Write in JavaScript.