refactors display to hangman