“What does the brain do?”, or Solving a priori undefined problems based on an autonomous agent behavior in real environment