Added EntityGroups and implemented group collision detection.