Heuristic emotions to difficulties

This is the part of the code that I accidentally erased. It reads
emotions and heuristically defines the next level of difficulty (very
simplified version)