To answer the question about the AI
there is a AI behind, a very simple that just calculates "the next two possible steps"
i could win every game so far with max just 1 miss (most needed to figure out which calculation is used)

try it.. u will see its very simple when you think two steps ahead