enemy direction and edge teleport tweak