@Override
	public int processMessage(String msg) {
		System.out.println(msg);
		String[] action = msg.trim().split(":");
		if(!action[0].equals(tabPlayer[currentPlayer].getId()))
			return -2;
		if (action[1].equals("MOVEB")) {
			if(moveB(tabPlayer[currentPlayer].getColor(), action[2], action[3]))
				return 0;
			else
				return -1;
		} else if (action[1].equals("MOVES")) {
			if(moveS(tabPlayer[currentPlayer].getColor(), action[2], action[3]))
				return 1;
			else
				return -1;
		} else if (action[1].equals("ENDTURN")) {
			return 2;
		}
		return -1;
	}