Algorithm fix

removed repeating fruit bug