Fixed bug that led to endless loop in nearest_enemy_dir().