updated tictactoe with comments