Testing multiagent interactions, fixed some bugs