Fix endGameBox