the first two of each group qualified for the quarter finals