Update Chasing Behavior C++ implementation