So basically my function is meant to do a certain move to a list, and every time I apply the function to the list, the list becomes a bit different, but still with the same