Fixed runtime error with ending screen.

There was a messed up reference, created a public variable to handle it.