Finished the selective-scenario algorithm

yay!