Save and load levels?

There definitely something with saving, maybe loading. but i think the saving is wronge, and its weird because the loading code loads ONLY the default value on my current level variable. If i leave it empty, i start PIE, it just closes without an error. It says failed to start PIE or something