Re-factored item stat generation

broke into functions and modified algorithm for better stat distribution
based on the item's rarity.