Adjusted auto-detect code; should now detect players in costumes.