@Override
	public void run() {
		
		String responseLine;
                String[] boardarray = {"TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY","TEMPORARY"};
                String temp;
                int i = 0;
                int j = 0;
		try {
			
			while ((responseLine = is.readLine()) != null) {
                            
                            if(i==14){
                                while(i>0){
                                    if(j==0){
                                        label.setText("");
                                    }
                                    temp = label.getText().replaceAll("</html>", "");
                                    temp = temp.replaceAll("</p>", "");
                                    temp = temp.replaceAll("<pre>", "");
                                    temp = temp.replaceAll("</pre>", "");
                                    temp = temp.replaceAll("<html>", "");
                                    temp = temp.replaceAll("<p>", "");
                                    label.setText("<html>" + "<pre>" + "<p>"+ temp + boardarray[j] + " <br>" +"</p>"+ "</pre>" + "</html>");
                                    i--;
                                    j++;
                                }
                                j = 0;
                                
                            }
                            if(responseLine.length()==15){
                                boardarray[i]= responseLine;
                                
                                i++;
                            }
                            else{
                                i=0;
                                //label.setText("<html>" + "<p>" + responseLine + "</p>" + "</html>");
                            }
                            System.out.println(responseLine);
                            if (responseLine.indexOf("END_GAME") != -1)
                                break;
			}
			closed = true;
		} catch (IOException e) {
			System.err.println("IOException:  " + e);
		}
	}