Moves the HashMap with the groups and their ID to GroupManager