Fix test: calculate distance between item and player.