This function generates a health value for each entity. The generated value is always a % of the maximum health, and it can’t be 0. If the damage dealt is higher than the current health the entity will die, otherwise health change cycle will continue.