working function for fruit gathering