added crude logic to mana bars