Creating function to get all matchs by groups on registration