We can call directly `onBattleEnded` method.
Then `onBattleEnded` must add the event to the ouput stream.