created a version that runs in the browser and scripts to run it in the browser or on command line, also added the ability to handle multiple choices by prompting user if they want to explore other choice points in the choice stack