Added events. Streamlined A* algorithm.