Created functional hangman game