adding the logic of the winners and losers