Rewrote alfa beta pruning