Fix gameEnd AI hook