python tictactoe game against an AI