Align the bears to face each other and let them rush into each other to merge those 2 bear entities and continue until there is only 1 bear entity with the condition that no bears can leave. outside the circle.