added Jonas' class hack to runRCGFreeChoiceTrial