Added score calculation for group matches