added alpha-beta pruning