implement coin & distance
Merge remote-tracking branch 'origin/DBLogic'