How would you do this without a computer? How would you write the rules for where to stand in normal language, without code?