@Override
	public void run() {
		// TODO Auto-generated method stub
		try {
			while((message = reader.readLine()) != null && !message.equals(".")) {
				System.out.println("Client received message: " + message);
				controller.MessageReceived(message);
			}
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}