Flocking behavior method with multiple leaders in obstacle environment