public void moveComponents() {
		
		synchronized(movings) {
			for (CityComponent c:movings) {
				if (c.isActive()) c.updatePosition();
			}
		}
		synchronized (intersections) {
			for (CityIntersection ci : intersections) {
				ci.setOccupant(null);
				synchronized (movings) {
					for (CityComponent cc : movings) {
						if (ci.isActive() && cc.isActive) {
							if (ci.collidesWith(cc)) {
								ci.setOccupant(cc);
							}
						}
					}
				}
			}
		}
		
	}