function giveDistance REMOVED