introduced debug stages, implemented methods for making decisions by
agents