A simple hangman game in C++