changed back to if (lifebar[i] = true)

Lifebar doesn't update when player's health decreases