def find_new_entrances(sector, entrances_map, connections, potentials, enabled, world, player):
    for region in sector.regions:
        if ((region.name in connections.keys()) and ((connections[region.name] in potentials.keys()) or (connections[region.name].name in world.inaccessible_regions[player]))):
            enable_new_entrances(region, connections, potentials, enabled, world, player)
    inverted_aga_check(entrances_map, connections, potentials, enabled, world, player)
def find_new_entrances(sector, entrances_map, connections, potentials, enabled, world, player):
    for region in sector.regions:
        if ((region.name in connections.keys()) and ((connections[region.name] in potentials.keys()) or (connections[region.name].name in world.inaccessible_regions[player]))):
            enable_new_entrances(region, connections, potentials, enabled, world, player)
    inverted_aga_check(entrances_map, connections, potentials, enabled, world, player)