pair wise competition script