@Override
	public void run() {
		
		String inputText;
		
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(communicationSocket.getInputStream()));
			
			while( (inputText = in.readLine()) != null ){
				if( inputText.equals("greeting")){
					greeting();
				}
				else if( inputText.equals("sayState")){
					sayState();
				}
				else if( inputText.equals("sayGoodbye") ){
					sayGoodbye();
				}
			}
			
		} catch (Exception e) {
			System.out.println("Error: "+e.getMessage());
		}
		
	}