hangman game built with angularjs on rails