Almighty AI. Except that there is a problem with detecting end of game.

This game is not considered as finished :
y/x	0	1	2

0	X	X	O

1	X	O	_

2	O	_	_