def remove_obstacle(pos): common.set_obstacle(world_obstacles, pos, False) common.draw_background(gui, world_obstacles, visited_nodes, optimal_path)
def add_obstacle(pos): common.set_obstacle(world_obstacles, pos, True) common.draw_background(gui, world_obstacles, visited_nodes, optimal_path)