Alpha-beta pruning added.