My program won't close when the user runs the quiz again and then types in "n" or "N" to exit. I want the program to cls and then put "The End" in the middle of the screen but it reruns the program again. How can I fix it?

Also, how can I center all the titles since the program is operationg on ?setscreen Here's the code:

code:

% Programmed by Nikolas Zboralski, Marta Ustyanich
% Programmed for: Mr. Calomeni
% File name: movie_trivia.t
% Date: Jan. 7, 2004
% Description: This will be a program that has questions and the user will have to choose the correct one otherwise they will get it wrong.

put "Question 1:"
put ""
put "In which movie of the Indiana Jones series did Harrison Ford find the Case of"
put "the 10 Commandments? (Please enter the letter of your selection)"
put ""
put "1) Raiders of the Lost Arc"
put "2) Temple of Doom"
put "3) The Last Crusade"
put ""
put "Please enter the number of your selection: " ..
get answer2 (1)
if answer2 (1) > 3 or answer2 (1) = 0 then
put "This is not a choice."
put "Please select another choice: " ..
loop % Will rerun the program when the user does not choose one of the choices
get answer2 (1)
exit when answer2 (1) = 1 or answer2 (1) = 2 or answer2 (1) = 3
put "Please select another choice: " ..
end loop
end if

locate (19, 1)
put "Your total score is ", count2, " out of 10." % outputs total score
put ""
if count2 >= 7 then
put "You would make a GREAT movie critic!"
elsif count2 >= 5 and count2 <= 7 then
put "You need to brush up on your movies!"
else
put "There is such a thing called BLOCKBUSTER!!!"
end if