Let the robot clean the trash, if the trash is picked up then it goes to a different position, if gold is found the robot ignores and moves on.
Credits to: Futurehacks5 for the opportunity for this hackathon.