refactors hangman code to be included in the model
refactors tictactoe