reinforcement learning approach to tictactoe