Research for flocking implementation, including the rules of flocking