While the machine learning is cool, the scenario you've set up is designed to give the second moving player a massive advantage, so it's not really impressive when the CPU finally figures out how to win. Like, P2 advantage is so large that if the human went second and was smart the CPU would never win no matter how smart it got. I would suggest making an at least slightly more complex game board and trying to balance First Turn (Dis)Advantage better.