A suggestion:
Have the bot run back to its previous location after picking up the rare.
Also:
Does this bot work by scanning for all items on the ground, meaning it doesn't have to have the rare on screen to know it's there?
Great bot, You saved me the effort of putting it together myself
P.S.
Rare counter is broken.