Processing code for tracking kinect movement in 3d