def produce_output(board):
    """Creates the output format from the board"""
    output = ""
    for i in range(len(board)):
        for j in range(len(board[0])):
            if board[i][j] is "?": return "?"
            output += board[i][j] + " " if j < len(board[0]) - 1 else board[i][j]
        output += "\n" if i < len(board) - 1 else ""
    return output