Issue #32 : improve distance detection for game