Restructuring of JACK code in PlayerControl.cpp