added CC API and Code, implemented Player Detector