pulled position/velocity updating, distance calculation and moving birds towards middle into their own methods. Wrote a test for distance calculation.