see code block of `what your snake.js file should look like` in lesson 7. in changeDirection snake is modified from the global state in moveSnake snake is passed into the function.