input: 
  def main():
      """ This function contains the main logic for a Tic Tac Toe game, including initializing the board,
      printing the board, handling player turns, checking for a win, and managing the game loop.
      
      Print the board layout and the welcome message.
      
      >>> 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): 9
      
      | O |   |   |
      |   | X |   |
      |   |   | X |
      
      X Wins! Congratulations!
      """
  
output:     print("Welcome to Tic Tac Toe!")
      
      board = [' ' for _ in range(9)]
      
      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]} |")
      
      def check_win(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 all(board[i] == player for i in condition):
                  return True
          return False
      
      def is_board_full():
          return all(cell != ' ' for cell in board)
      
      current_player = 'X'
      
      while True:
          print_board()
          print(f"Your turn player {current_player}")
          move = int(input("Enter your move (1-9): ")) - 1
          
          if board[move] == ' ':
              board[move] = current_player
              if check_win(current_player):
                  print_board()
                  print(f"{current_player} Wins! Congratulations!")
                  break
              elif is_board_full():
                  print_board()
                  print("It's a draw!")
                  break
              else:
                  current_player = 'O' if current_player == 'X' else 'X'
          else:
              print("Invalid move, try again.")