changed getMaxHealth to return correct value