Fixed bugs around level up, added death penalty

-Fixed bugs dealing with critical stat gains on level up
-added an exp loss on player death.  The player can never lose more than
half of the exp they have, but will always lose some exp when they die,
and have their expToLevel increased by the same amount