Save/Load

I am remaking Mario Maker 2. I created a save and load function to save the tilemaps while in-game. But the tilemaps disalign when I load them in.