Added faster solving algorithm. Improved stop btn.

New algorithm is used for everything except the animation.
Stop button no longer clears input when used during an animation.