moved savelevel() code to level.h/c where it belongs to. :)