Added intelligent behaviour

- problem with not been able to preserve state of population of agents