def update_board(self, position, flag=False):
    'Takes position [x,y] as input\n\t\t\treturns a updated board as a string\n\t\t'
    x = (position[0] - 1)
    y = (position[1] - 1)
    if (flag == True):
        if (self.board_data[y][x] == ' ◌ '):
            self.board_data[y][x] = ' ▶ '
        elif (self.board_data[y][x] == ' ▶ '):
            self.board_data[y][x] = ' ◌ '
        return self.draw_board()
    if (self.mine_board[y][x] == '◉'):
        self.board_data[y][x] = ' ◉ '
        return False
    elif (isinstance(self.mine_board[y][x], int) and (self.mine_board[y][x] > 0)):
        self.board_data[y][x] = ((' ' + str(self.mine_board[y][x])) + ' ')
    else:
        self.flood_fill(x, y)
    return self.draw_board()
Takes position [x,y] as input
returns a updated board as a string
def update_board(self, position, flag=False):
    'Takes position [x,y] as input\n\t\t\treturns a updated board as a string\n\t\t'
    x = (position[0] - 1)
    y = (position[1] - 1)
    if (flag == True):
        if (self.board_data[y][x] == ' ◌ '):
            self.board_data[y][x] = ' ▶ '
        elif (self.board_data[y][x] == ' ▶ '):
            self.board_data[y][x] = ' ◌ '
        return self.draw_board()
    if (self.mine_board[y][x] == '◉'):
        self.board_data[y][x] = ' ◉ '
        return False
    elif (isinstance(self.mine_board[y][x], int) and (self.mine_board[y][x] > 0)):
        self.board_data[y][x] = ((' ' + str(self.mine_board[y][x])) + ' ')
    else:
        self.flood_fill(x, y)
    return self.draw_board()