created DJ class

refactored tictactoe to use Dj Class