added health and energy scripts (not finished)