Define first function for boids