MongoDB + Distributed Actor

So I have an app that 2 or more device can move players around and change stat and game settings. I have implement an activity structure to inform any new activity, push to mongoDB and other devices can listen to it and apply changes. This is not safe in my opinion because 2 or more device can grab the same player and move to different positions which then lead to race conditions.

My solution is to apply Distributed Actor. What do you guy think?
Meet distributed actors in Swift - WWDC22 - Videos - Apple Developer.