Implement recursive fruit checking