Fixed bug in run method of AlphaBetaThread.