Building a hangman game with AngularJS