C++ Hangman Socket