multiple thread AI

And add variable in SquareArray