circle detection (not finished)