input: Write a function to implement a Tic Tac Toe game in Python. The game should initialize a board, print the board, prompt players to make their moves, check for victory conditions, and declare a winner or a tie if the game ends without a winner.
  assert is_victory(["X", "X", "X", "O", "O", " ", " ", " ", " "]) == True
  assert is_victory(["X", "O", "X", "O", "O", "X", "O", "X", "O"]) == True
  assert is_victory(["X", "O", "X", "O", "X", "O", "O", "X", " "]) == False
  assert is_victory([]) == False
  assert is_victory(["X", "O", "X"]) == True
output: def is_victory(board):
      lines = [
          [0, 1, 2], [3, 4, 5], [6, 7, 8],  # rows
          [0, 3, 6], [1, 4, 7], [2, 5, 8],  # columns
          [0, 4, 8], [2, 4, 6]              # diagonals
      ]
      for line in lines:
          if board[line[0]] == board[line[1]] == board[line[2]] and board[line[0]] in ["X", "O"]:
              return True
      return False