alpha-beta pruning implemented