private String pegs(String guess,String sec){
		int w = 0;
		int b = 0;
		int[] bused = new int[4];
		int[] wused = new int[4];
		
		for(int i=0;i<4;i++){
			if(guess.charAt(i) == sec.charAt(i)){
				b++;
			//	System.out.println(guess.charAt(i));
				bused[i] = 1;
			}
		}
		
		for(int i=0;i<4;i++){
			if(bused[i] == 1){
				continue;
			}
				char cur = guess.charAt(i);
				for(int j=0;j<4;j++){
					if(cur == sec.charAt(j)){
						if(wused[j] != 1 && bused[j] != 1){
							w++;
						//	System.out.println(cur);
							wused[j] = 1;
							break;
						}
					}
				}
		}
		
		return String.format("%db %dw", b,w);
	}