Rewriting AFM: Go by heaps divided by angle instead of walking over the front again and again. (As expected, it's not working yet.)