Ok I fixed it thank you so much! This is how all my localstorage looks like and works the way I need it.
I have one final questions if it is not a problem. If I would like to use these points to buy items for the main character, how could I do it in a way that if the main character dies, they restart the layout with the things that they have already bought in the previous ones?
Currently when character dies, the points go to 0, which I don't mind because it adds an extra layer of difficulty so its more fun to try and stay alive until you spend your money.
But how can I do that so that it keep the items?