Hangman game implemented in AngularJS