Hangman in c++