added code to control health bar. TODO: add green healthbar texture and fix ui.json to use new texture