working endgame menu and next match countdown