This is actually a pretty standard single layer linear game. The only real differentiator between these and other games is the fact that there are two restaurants.
I would set it up like this.
__ __ __ __ __ __ __ 1 2 3 4 5 6 7
We have 7 variables. O, P, R, R, S, T, V.
Making two scenarios would be useful for this game. Referencing the very first rule. Make one scenario where P is first and another in which P is last.
I hope this helps. Please let me know if you'd like me to elaborate further!