2-Peterson's algorithm LTS

You can improve this solution. I have tried making decisions based on
other neighbour's "turn" variable as well but that creates problems (but
maybe I'm wrong and you can manage it).