Simple hangman game in C