Sort each component into its group: drag it, or tap it and then a group.
Boxes inside the pond
Cross the boundary, in
Cross the boundary, out
Stay inside the boundary