To play again, every piece of state must go back to its start. We collect the starting values in one function,
reset, and the first game starts through it too.
```js
let bird
let pipes
let frame
let score
let state // 'ready', 'playing' or 'over'
function reset() {
bird = { x: 100, y: 300, vy: 0, r: 14 }
pipes = []
frame = 0
score = 0
state = 'ready'
}
reset()
requestAnimationFrame(loop)
```
What it means
The let lines now only declare the names; reset gives them their values.
reset() at the very bottom sets up the first game, before the loop starts.
Your turn
Replace the five let lines with the five lines without values and the reset function.
At the very bottom, write reset() above requestAnimationFrame(loop).