Updated the camera chasing algorithm