You have to terminate the while loop when NO is choosen. That can be done either with a break or an extra condition in the while statement.