public void update(Graphics g){
		elapsedTime = System.currentTimeMillis() - lastUpdate;
		lastUpdate = System.currentTimeMillis();
		world.update(elapsedTime);
		if(waitToRed){
			tempTime += elapsedTime;
			if(tempTime >= Main.pedestrian_time){
				tempTime = 0;
				waitToRed = false;
				world.suddenChange(World.State.MMKKM);
			}
		}
		if(unset && merah.getWidth(null)!=-1){
			double centerx = (merah.getWidth(null)/2) *0.7;
			double centery = (merah.getHeight(null)/2) *0.7;
			left.translate(200, 203);
			left.rotate(Math.toRadians(90), centerx, centery);
			left.scale(0.7, 0.7);
			right.translate(474, 443);
			right.rotate(Math.toRadians(270), centerx, centery);
			right.scale(0.7, 0.7);
			down.translate(225, 441);
			down.scale(0.7, 0.7);
			top.translate(445, 177);
			top.scale(0.7, 0.7);
			single.translate(447, 443);
			single.scale(0.7, 0.7);
			unset = false;
		}
		
	}