public void addOrUpdate(sharedstate.SharedState state, GameObject g, String data) {
		UUID id = g.getId();

		boolean found = false;
		for (GameObject g2 : state.getObjects()) {
			if (id.equals(g2.getId())) {
				found = true;
				if (g.getLastTimeStamp() <= g2.getLastTimeStamp()) {
					break; // old data dont use
				}
				g2.fromNetString(data);
				break;
			}
		}
		if (!found) state.getObjects().add(g);
	}