Tweaks to XP/Rank gain, fixed the infamous negative rank bug