Populated the running function of the Kinect class