initial functionality for hangman and play in place