Update game end logic