If enemy is dead and main character is defeated, enemy stops moving.