Printed out all groups before trying to combine them. Changed "building" to "grouping" for better reuse later for amalgamation.