Connect 4 learning algorithm.