Abstract healthbar and add it to player and scriptedenemy