static void rellenarBlancos(int[][] mat, int posI, int posJ){
		LinkedList<int[]> cola = new LinkedList<int[]>();
		mat[posI][posJ]=3;
		cola.add(new int[]{posI,posJ});
		while(!cola.isEmpty()){
			int[] pos=cola.removeFirst();
			if(pos[0]<mat.length-1&&mat[pos[0]+1][pos[1]]==0){
				cola.add(new int[]{pos[0]+1,pos[1]});
				mat[pos[0]+1][pos[1]]=3;
			}
			if(pos[0]>0&&mat[pos[0]-1][pos[1]]==0){
				cola.add(new int[]{pos[0]-1,pos[1]});
				mat[pos[0]-1][pos[1]]=3;
			}
			if(pos[1]<mat[pos[0]].length-1&&mat[pos[0]][pos[1]+1]==0){
				cola.add(new int[]{pos[0],pos[1]+1});
				mat[pos[0]][pos[1]+1]=3;
			}
			if(pos[1]>0&&mat[pos[0]][pos[1]-1]==0){
				cola.add(new int[]{pos[0],pos[1]-1});
				mat[pos[0]][pos[1]-1]=3;
			}
		}
	}