Function drawMatches