tictactoe file refactoring