character.setDestination(exit);
}
if (passageAllowersInterval > 0){
WallPassageAllowerAgent allower = new WallPassageAllowerAgent(passageAllowersInterval);
maze.addWallPassageAllower(allower);
Collection<MazeSpace> spaces = maze.getSpaces();
for (MazeSpace space : spaces) {
if (space.hasWalls()){
allower.addWall(space);
}
}
}
}