Settings Blocks for Platformer

Hello Forums, I have a question about the settings block extension for makecode arcade. I am trying to save checkpoints and the level every time the player completes a level and progresses. I have managed to keep the score and life count successfully, and what checkpoint the player is at, but not what level the player is on. The game only saves when the player gets a checkpoint or completes a level. Here is the link to the game, warning, the code is over 4600+ blocks!: strong text