Added test block - function to store and restore inventory of player