fixed prereq tree AI bug and started implementing ajax