creating hangman with angular and rails