Hangman in simple C - Academic purposes