Put failure count threshold back into main while loop in simulator.
Put failure count threshold back into main while loop in simulator.

stallmanifold/cs229-machine-learning-stanford-fall-2016,stallmanifold/cs229-machine-learning-stanford-fall-2016