further functional code

refining the bounding circle for a cue; improving detection