def reset_maze():
    'Resets any cells that are VISITED or PATH to EMPTY again, so that we\n    can commence a search on a potentially partially completed board'
    for col in range(COLS):
        for row in range(ROWS):
            grid[(col, row)] = (EMPTY if (grid[(col, row)] in [VISITED, PATH]) else grid[(col, row)])
Resets any cells that are VISITED or PATH to EMPTY again, so that we
can commence a search on a potentially partially completed board
def reset_maze():
    'Resets any cells that are VISITED or PATH to EMPTY again, so that we\n    can commence a search on a potentially partially completed board'
    for col in range(COLS):
        for row in range(ROWS):
            grid[(col, row)] = (EMPTY if (grid[(col, row)] in [VISITED, PATH]) else grid[(col, row)])