Add player.xp.to_next_level, fixes #330

Fix issue #330, correcting an error made in e386e59