Replaced the overall boolean condition maintaining the program until user quits with another state variable