Reinforcement learner.

Reinforcement learning  - initial implementation.
Merge:Changes to gamenegine