created tictactoe controller