miniMax with pruning