I'm writing a program for a simple ATM machine. The only valid pin is 123. If the user enters an invalid pin three times, the program should display and message and then close. But it won't even get to the part where it displays a message. If the correct pin is entered everything is fine, but if the wrong pin is entered, it won't close, even after many attempts.