I\'m trying to use a 2D array as state in my project. But I have the following problem: for some reason when I update the state it also updates the class property, and for s