System.out.println("synchronize " + ship.id);
Vector2 networkPos = new Vector2((float) obj.getJSONObject("message").getDouble("positionx"),(float) obj.getJSONObject("message").getDouble("positiony"));
if(networkPos.dst(ship.body.getPosition())>1) {
gameSession.networkUpdates.add(new UpdatePackage(ship, networkPos, (float)obj.getJSONObject("message").getDouble("angle")));
} else {
networkPos.sub(ship.body.getPosition());
Vector2 newPos = ship.body.getPosition().tmp().add(networkPos.mul(0.1f));
gameSession.networkUpdates.add(new UpdatePackage(ship, newPos, (float)obj.getJSONObject("message").getDouble("angle")));
}
if(obj.getJSONObject("message").getString("state").equalsIgnoreCase("IDLE")) {