public void solve(){
		Solver solver = new Solver();
		String line = "";
		int count;
		try {
			while(true){
				line = bf.readLine();
				if(line == null)
					break;
				if(line.startsWith("#") || line.isEmpty())
					continue;
				//String[] parts = line.split("\\|");
				count = 0;
				for(int i = 0; i < 81; i++){
					if(line.charAt(i) != '.')
						count ++;
				}
				solver.load(line);
				solver.dfs(0);
				System.out.println(line + "|" + solver.getResult() + "|" + count);
				bw.write(solver.getResult() + "|" + count + "\r\n");
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} finally {
			try {
				bf.close();
				bw.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}