Fixed a bug with experience gains

Experience gains are now once again calculated correctly.