Two more strategies

Implemented RandomStrategy and MasochistStrategy and their unit tests. Note that this branch contains all changes of RulesAdapter too.