Fixed XP Gains

One weird debug and one standard.  Function returning strangely and a
deep copy of an object necessary.