public void translateMessageFromServer(String inMessage) throws IOException 
	{
		if (Agent.debugMode)
			System.out.println("Message from server: '" + inMessage + "'");
		
		if (inMessage.contains("start")) 
		{
			startTheGame(inMessage);
		}
		else if (inMessage.contains("second_move"))
		{
			respondToSecondMove(inMessage);
		}
		else if (inMessage.contains("third_move"))
		{
			respondToThirddMove(inMessage);
		}
		else if (inMessage.contains("next_move"))
		{
			respondToOpponentMove(inMessage);
		}
		else if (inMessage.contains("win") || inMessage.contains("loss"))
		{
			System.out.println(inMessage);
		}
		else if (inMessage.contains("end"))
		{
			endGameKillServer();
		}
		else
		{
			// ignore all other messages
		}
	}