Fixed boids.py but buffer needs more thorough tests to ensure all cases are handled properly