Made sure that none of the new agent functionality is interfering with the old code.

It should run normally, but if it does not, then another commit will be
coming to address this issue shortly.
Made a small change to fix a null ptr exception

THere is also a bug stemming from v3.0 where if five customers are in
the list, and you set them all to hungry, the fifth customer will not be
served.