input: Write a function to implement an AI Tic-Tac-Toe game using Python. The function should include methods to draw the board, check for a winning condition, and determine the computer's move, which should include a basic strategy to block a human win if possible. The function should also handle the game loop, alternating turns between the human player and the computer until a win or draw condition is met.
  assert playGame()==None
  # The function playGame() does not return any value and directly interacts with the user and displays the board and results. Any interactive parts should be tested manually.
output: def playGame():
      board = [' ' for _ in range(9)]
  
      def drawBoard():
          print(f"{board[0]}|{board[1]}|{board[2]}")
          print("-+-+-")
          print(f"{board[3]}|{board[4]}|{board[5]}")
          print("-+-+-")
          print(f"{board[6]}|{board[7]}|{board[8]}")
  
      def checkWin(player):
          win_conditions = [(0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 3, 6), (1, 4, 7), (2, 5, 8), (0, 4, 8), (2, 4, 6)]
          for condition in win_conditions:
              if board[condition[0]] == board[condition[1]] == board[condition[2]] == player:
                  return True
          return False
  
      def computerMove():
          for player in ['O', 'X']:
              for i in range(9):
                  if board[i] == ' ':
                      board[i] = player
                      if checkWin(player):
                          return i
                      board[i] = ' '
          for i in range(9):
              if board[i] == ' ':
                  return i
  
      def gameLoop():
          drawBoard()
          while True:
              human_move = int(input("Enter your move (0-8): "))
              if board[human_move] == ' ':
                  board[human_move] = 'X'
                  if checkWin('X'):
                      drawBoard()
                      print("You win!")
                      return
                  if ' ' not in board:
                      drawBoard()
                      print("It's a draw!")
                      return
                  computer_move = computerMove()
                  board[computer_move] = 'O'
                  drawBoard()
                  if checkWin('O'):
                      print("Computer wins!")
                      return
                  if ' ' not in board:
                      print("It's a draw!")
                      return
  
      gameLoop()