I have this problem in which I want to save the object\'s variables but this one, having the same memory address in the last iteration of the recursion, updates its valu