input: def tic_tac_toe_game():
      """ Develops a Tic Tac Toe game in Python. The game will alternate between player X and player O. Each player will choose a move by entering a number between 1 and 9, which corresponds to a position on the 3x3 board. The game will continue until one player wins or the board is full, resulting in a tie.
      >>> main()
      Welcome to Tic Tac Toe!
      |   |   |   |
      |   |   |   |
      |   |   |   |
      
      Your turn player 1
      Enter your move (1-9): 5
      |   |   |   |
      |   | X |   |
      |   |   |   |
      
      Your turn player 2
      Enter your move (1-9): 1
      | O |   |   |
      |   | X |   |
      |   |   |   |
      
      Your turn player 1
      Enter your move (1-9): 2
      | O | X |   |
      |   | X |   |
      |   |   |   |
      
      Your turn player 2
      Enter your move (1-9): 4
      | O | X |   |
      | O | X |   |
      |   |   |   |
      
      Your turn player 1
      Enter your move (1-9): 6
      | O | X |   |
      | O | X | X |
      |   |   |   |
      
      Your turn player 2
      Enter your move (1-9): 3
      | O | X | O |
      | O | X | X |
      |   |   |   |
      
      Your turn player 1
      Enter your move (1-9): 7
      | O | X | O |
      | O | X | X |
      | X |   |   |
      
      X Wins! Congratulations!
      """
output:     
      board = [' ' for _ in range(9)]
      current_player = 'X'
  
      def print_board():
          print(f"| {board[0]} | {board[1]} | {board[2]} |")
          print(f"| {board[3]} | {board[4]} | {board[5]} |")
          print(f"| {board[6]} | {board[7]} | {board[8]} |")
          print()
  
      def check_winner():
          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]] != ' ':
                  return board[condition[0]]
          return None
  
      def is_board_full():
          return ' ' not in board
  
      print("Welcome to Tic Tac Toe!")
      print_board()
  
      while True:
          move = input(f"Your turn player {current_player}\nEnter your move (1-9): ")
          if not move.isdigit() or int(move) < 1 or int(move) > 9 or board[int(move) - 1] != ' ':
              print("Invalid move, try again.")
              continue
  
          board[int(move) - 1] = current_player
          print_board()
  
          winner = check_winner()
          if winner:
              print(f"{winner} Wins! Congratulations!")
              break
  
          if is_board_full():
              print("It's a tie!")
              break
  
          current_player = 'O' if current_player == 'X' else 'X'
  