trying to make it store the player's inventory on death