On "AllXSave" exist -> recX.Load LocalStorage.ItemValue.
Do the same for the others. This should all fit into a 3D array, I think. If AmountSaved is just the number of dots, the array length itself gives you that number. If you start with an empty array and push data on it, it will only ever be the correct length.