hideWord function setup for hangman app