I am trying to build an if statement to stop this function from loading the items multiple times. The issue starts at the let x=-1 variable. It is adding all the items over 10 t