added enemy health value check and defaults