Thanks for playing :>
It's semi random. The adventurers prefer going forward but have a 10% chance to choose a different (random) direction on an intersection while avoiding going backwards. I tried a few different methods for pathfinding and this one seems to get them to the center relatively consistently. I know it's not perfect but it's what we could do in 48 hours.
I could imagine doing some smarter (or cheating) ai that uses navigation paths to go to the center with intent but that seemed boring to me. Maybe a hybrid of the two methods would be cool.
I had a lot of trouble with getting the tiles to rotate properly without displacing the adventurers and messing up their wayfinding. That unexpectedly took a lot of time away from working on the actual gameplay. I'm just happy we got to a point where you can see the general idea of the game :)