Making simple Board Game AI Bot

My simple bot is freezing.

I am trying to make a simple bot for my turn based board game. She initially seems to work for about three turns and then jibs. Please tell me what I’m doing wrong and the simplest fix.

My suspicions:

In the attached I have added delays of 0.1 to each action. This was the only way I could stage the movement with out the counters racing around in a circle (the action changes the counters position thus making it temporarily true for the other 8 positions.) I think the issue lies here, with multiple instances being processed, potentually creating the lag, how do I order this correctly?

screenshots

The Moon reffers to one of the counters.

The full Script for the Bot

The players code for context. The cardinal compass directions refer to the 8 positions.

The game screen example