A Tic Tac Toe engine that learns from past games