Fixed the overall loop for asking user to exit