Petla w updateLogicThread i GameEntityFactory