Modify minmax to include alpha-beta pruning.