added awarding of cards at the end of a match