Implemented matchWinner and associated tests