Hangman in Angularjs