Fixed a bug that would forget which direction to follow walls in.