Hoe to set a corrrect order to cross the maze

Hi everyone!

I have an infinite maze, it’s working fine. It’s simple, one room with 4 colliders, one for each path, and when the players cross one of this colliders, the next room spawns.

Now I need to set a correct path to cross the maze but, have no idea.