You are only searching for chickens that are visible.
Thus there are no more chickens to turn the camera to since you only check for those that are visible?
Btw, just get rid of that, interaction of the client API will auto rotate and do what's needed for you.