Fixed up some display related bugs. Fixed a bug in the pathfinding code. Added an A* search routine.