Rules adapter

Added RulesAdapter, fixed so Greedy Strategy and Simple Strategy works with it, and their unit tests too.