Something is wrong with my game

ok i have made something i want my game to look like, sort of a practice start, everytime you buy tomes from a shop (which you can’t yet but thats not the point) when you exit the shop alll your stuff changes back to what it orignally was before you picked up the cash and whatnot. press space to go into the Tome shop http://img294.imageshack.us/my.php?image=randomkilling6bp.swf