input: 
  Write a function to develop a Tic Tac Toe game in Python. The function should define a board, print the board, handle player turns, check for victory conditions, and include a main function to run the game.
  
  def tic_tac_toe_game():
      # Code for the Tic Tac Toe game as provided in the input
  
  assert tic_tac_toe_game()==None
  
output:     board = [' ' for _ in range(9)]
      def print_board(board):
          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 check_winner(board, 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 is_board_full(board):
          return ' ' not in board
  
      def main():
          current_player = 'X'
          while True:
              print_board(board)
              move = int(input(f"Player {current_player}, enter your move (1-9): ")) - 1
              if board[move] == ' ':
                  board[move] = current_player
                  if check_winner(board, current_player):
                      print_board(board)
                      print(f"Player {current_player} wins!")
                      break
                  elif is_board_full(board):
                      print_board(board)
                      print("It's a tie!")
                      break
                  current_player = 'O' if current_player == 'X' else 'X'
              else:
                  print("Invalid move, try again.")
  
      main()