Coding Solver Stage as a State Pattern, Created a State Machine