matches: validate that only the same teams can play in the same match; memoize a match's games