AI now turns to look where it's going; added updateFunction to facilitate this