Hangman code- version 1