tree: implement grouping games by matchday