Modified hangman algorithm added view for game