Working on the new opponent model

Note that I appear to have less time today then I anticipated, so I will
continue working on this later today/tomorrow. My intentend is to have
"something" that works by monday.

Signed-off-by: immortaly007 <immortaly007@gmail.com>
Added first version of code for the smart frequency model
Fixed some bugs but still need to test performance
Merge pull request #5 from tomrunia/master

Merging phase2-runia with master