Rotate according to the rules until all the fruits in the array are the results that the game screen requires.