user
Write a function that moves a character across a two-dimensional array on a game board

assistant
"""
Function to move a character across a two-dimensional array on a game board
"""

def move_character(game_board, x, y):
    # check if out of bounds 
    if (x < 0 or x >= len(game_board[0]) or 
        y < 0 or y >= len(game_board)):
        print("Out of bounds") 
        return 
    
    # update character 
    game_board[y][x] = 'C' 

    # print the updated game board 
    for row in game_board:
        print(" ".join(row))