Implemented rule 3
Implemented rule 6
Implemented rule 4. Can now apply rules consecutively.
Fixed RuleSet logic