Hi.
It looks like the game has like preset positions where it moves to.
on arriving to a point you could do 2 raycasts, 1 forward to see if there is a wall.
if so rotate and go to next point, if not check floor.
another way (which i think it used here) is have everything preset in a fsm.
so for example if you reach a point that needs rotate it will automatically do that when point x is reach
also for single turns you can make it do that automatically.
and for 2/3 way you can then wait for controller input.