working alpha-beta pruning