Basic hangman game programmed in C