Finished problem 18 (and 67!)

I was literally 3 characters away - I guess I was just tired yesterday.
Tested the algorithm on problem 67, worked great also. I don't think
it's A*, though...