Fixed a few bugs in NAgents.py