Update Solver.py

Added automatic-stopping.