fixed bug now if you say BYE three times in a row the program terminates as it should