public static void main(String[] args) throws InterruptedException {
		Main main = new Main();
		while(true) {
			for(Unit unit : main.getUnits()) {
				unit.updateAction();
				unit.updateGraphics();
			}
			for(Building building : main.getBuildings()) {
				building.updateGraphics();
			}
			for(AnimatedObject animObj : main.getAnimatedObjects()) {
				animObj.updateGraphics();
			}
			for(ManaCrystal manaCrystal : main.getManaCrystals()) {
				manaCrystal.updateGraphics();
			}
			for(MovingObject movObj : main.movingObjects) {
				movObj.updatePosition();
				movObj.updateGraphics();
				System.out.println(movObj.getIntX() + " " + movObj.getIntY());
			}
			/*
			LinkedList<AnimatedObject> deadAnimatedObjects = new LinkedList<AnimatedObject>();
				animObj.addTime(delay);
				if(animObj.getState() == State.DEAD) {
					deadAnimatedObjects.add(animObj);
				}
			}
			for(AnimatedObject animObj : deadAnimatedObjects) {
				main.getAnimatedObjects().remove(animObj);
			}
			 */
			Thread.sleep(delay);
		}
	}