Fixed the arrayNumber issue to make the foods work correctly