added functions to calculate exp gain and stat gain on level up