refactoring tictactoe