Added function to combine groups full connected by empty cells.