added boids code