Created a match_speed method in the class boid. I will now change the update_boid function in the main code to use the boid class rather than the functions it currently uses.
Removed the part of the fly_away_from_nearby and match_speed method that made them conditional of distance.
Changed boid.py to use the class methods rather than functions used previously. I also changed the animate function to work with this new update_boids. While this is a rather large refactor there wasn't a step in the middle where the code as a whole entirely worked.