Principal core of the application with kinect