Implementing xp and mana system