added nullchecks for cipher

cipher was never being initialised on save decryption
TODO:
send the key to the save file (somehow), then read and apply it on loadsave