New logic for finding the way, doesn't work yet.