@Override
	public void run() {
		String response;
		
		/*
		while((response = socketScanner.next()) != null) {
			System.out.println(response);
			if(response.indexOf("*END*") != -1)  //If the response contains "*END*", then it's index will be something other than -1
				break;
			closed = true;
		} */
		
		try {
			int c1;
			while((c1 = socketReader.read()) != 13) { //stays here until there is something for the socketReader to read
				buffer.append((char) c1);
			}
		} catch (IOException e) {
			System.err.println("Error in reading(Server probably just closed)");
			System.exit(-1);
		}
		
		System.out.println(buffer); //This will be reached after the blocking-read ends
	}