Herding puzzle