Changed Agent objects to pointers in all classes