http://www.ntu.edu.sg/home/ehchua/programming/java/JavaGame_TicTacToe_AI.html