added functions to player.js, and a few inventories on death