forms teams given a set of rules