Added alpha-beta pruning.