Adds possible groups to hash map.