prototype of grouping, not working properly when remove portals. Not showing the correct portal when removed a portal belonging to 2 or more groups