@Override
	public void onFrame() {
		for (Unit unit : self.getUnits()) {
			if (unit.getType().isWorker() && unit.isIdle()
					&& unit.isCompleted()) {
				resourceManager.giveWorker(unit);
			}
		}
	}