The computer rolls an imaginary dice. If the dice number rolled is... more than 3 --> move to the right less than 3 --> move to the left equal to 3 --> don't move The dice never stops rolling.