a creative way would be giving the object instance variables.
Dis1i, Dis2i, Dis3i, etc. and setting them to the distance to the player.
then you can do a sytem compare 2 for every one:
min(Dis1i,Dis2i, etc.) = Dis1i -> player pin to imagepoint1
min(Dis1i,Dis2i, etc.) = Dis2i -> player pin to imagepoint2
There are probably much better ways, but I'm trying to be creative here.