fix bug with game has ended display in index page