Implement alpha-beta-pruning