alpha beta pruning implemented