Challenge: “Quit” Command

Players will most likely want to quit NyetHack at some point, and currently NyetHack offers no way to do that. Your challenge is to fix this. When a user enters “quit” or “exit,” NyetHack should display a farewell message to the adventurer and terminate. Hint: Remember that, currently, your while loop executes forever – a significant part of solving this puzzle is to end that loop conditionally.