creating a health bar in pygame with player controls