added selection of final object id. Everything compiling, needs to be checked with the kinect.