private ArrayList<Team> getGroup(int groupId, ArrayList<Team> teams)
    {
        ArrayList<Team> group = new ArrayList();

        for (Team t : teams)
        {
            if (t.getGroupId() == groupId)
            {
                group.add(t);
            }
        }
        return group.isEmpty() ? null : group;
    }