def connect_doors(world, doors, targets, player):
    'This works inplace'
    random.shuffle(doors)
    random.shuffle(targets)
    while doors:
        door = doors.pop()
        target = targets.pop()
        connect_entrance(world, door, target, player)
This works inplace
def connect_doors(world, doors, targets, player):
    
    random.shuffle(doors)
    random.shuffle(targets)
    while doors:
        door = doors.pop()
        target = targets.pop()
        connect_entrance(world, door, target, player)