Copy a deeply nested Javascript Typescript object by value vs reference for game development using structuredClone.