private int score(int y,int x,char color){
		int score = 0;
		String buff = move(y,x,color);
		int start = 0;
		int end = buff.length();
		this.print();
		while(start < end){
			String pos = buff.substring(start, start+2);
			String b = move(pos,color);
			
			for(int i=0,l=b.length();i<l;i+=3){
				String p = b.substring(i,i+3);
				if(buff.indexOf(p) == -1){
					buff += p;
					end +=3;
				}
			}
			
			System.out.println("buff:" + buff);
			//buff += b;
			//end += b.length();
			start += 3;
			this.print();
		}
		
		score = buff.length()/3;
		System.out.println("score:"+ score);
		return score;
	}