Use userData to record group info.

ps: Adjusted the moving method.