Changed main.py to better handle Kinect detection