public static int[] twoPair(Carta[] j){
		int[] arr = new int[15];
		for (int i = 0; i < j.length; i++) 
			arr[j[i].valor]++;
		int par1 = 0, par2 = 0, remaining = 0;
		for (int i = 0; i < arr.length; i++) 
			if(arr[i] == 2 && par1==0)par1 = i;
			else if(arr[i] == 2)par2 = i;
			else if(arr[i] == 1)remaining = i;
		return par1>0&&par2>0?new int[]{max(par1, par2), min(par1, par2), remaining}:null;
	}