Rearrange "init" and fix loot functionality

Rearranged the ordering of function calls in "init" in order to avoid a
game-crashing bug (I fear a subtle memory issue may still be lurking
somewhere, however). Also fixed the LOOT_MODE/REPLACE_ITEM_MODE
functionality in "menu_select_callback".