updated ActorMovedEventHandler function