no endless loop after allenemys are dead