Solved IsContinuing method
Implemented the IsContinuing method in main method