Moved update function into Boid object definition.