added a check previousHealth != currentHealth to avoid rendering hearts needlessly