added alpha beta pruning