Looks like a working alpha-beta-pruner