Added function to check if a player has enough mana.