Documented the a* algorithm.  Also, found a bug that leads to a segfault;
it seems that when enemies end up in the same square as the main player,
they disappear, which eventually throws a segfault when you try to run it.
Weird, I have no idea why that might happen.