Remove duplicate openLootChest() function.
Add missing generateLootChest() function.