Removed module_logging, as it seemed to overflow Prolog's stack.
Reworked module_path_finding to comment out debugging messages.
Abort plan in agent_template if it's deadly enough.