A lot of bugs fixed, only giving random item core part left

You just have to finish `function giveRandItem(Player $player)`.