The earlier lesson, we already created a way to end the game, so that was invoking the play game over
function so we could do the same thing for whenever the bird or the player collides with one of the
obstacles.
And so whatever this turns back, true, we can simply do the game over method so that we think we can
try that out within the gameplay.
And if we run off of the bottom of the screen or if we crash into one of the obstacles, we're going
to see that we're invoking that game over function and then, of course, we can start again.
So we already have taken care of the start again, the few things that we need to update some of the
styling so we can also tweak that message and place that over top of the pipes.
So going into where our HTML is, we've got our game message.
So moving that game message and we can set that after the game area.
So that will take care of that overlap.
And now when we start, our message is actually going to be on top of it.
We could have also adjusted the styling as well.
So we see that we get our score, we get a game over, click here to start again.
So we are able to start again.
So go ahead and add in the ability to end the game whenever you crash into one of the obstacles and
come up next, we'll do a quick game review of all of the source code that we've worked on will play
through to make sure that there's no additional tweaks or judgments that we need to make, and that
makes sure that the game is functioning as intended.
So that's coming up in the next lesson.