Doing some harmless refactoring
More refactoring
Big refactoring of A* code

I can actually read and understand it now!