Wow, cpu can win
(but he can't check dangers on diagonals, it must be fixed)