grouping

* improved how groups are formed. now checked right when click is made.