@Override
	public void update(long delta) {
		if (Keyboard.isKeyDown(Keyboard.KEY_UP)) {
			InputController.keyDown(delta, Keyboard.KEY_UP);
		}
		if (Keyboard.isKeyDown(Keyboard.KEY_DOWN)) {
			InputController.keyDown(delta, Keyboard.KEY_DOWN);
		}
		if (Keyboard.isKeyDown(Keyboard.KEY_LEFT)) {
			InputController.keyDown(delta, Keyboard.KEY_LEFT);
		}
		if (Keyboard.isKeyDown(Keyboard.KEY_RIGHT)) {
			InputController.keyDown(delta, Keyboard.KEY_RIGHT);
		}

		for (StaticEntity e : StaticEntity.entities) {
			e.update(delta);
		}
		if(StaticEntity.newEntities.size() > 0) {
			StaticEntity.entities.addAll(StaticEntity.newEntities);
			StaticEntity.newEntities.clear();
		}
		if(StaticEntity.obsoleteEntities.size() > 0) {
			StaticEntity.entities.removeAll(StaticEntity.obsoleteEntities);
			StaticEntity.obsoleteEntities.clear();
		}
	}