Created a riddle

Well, I like to believe the code works. It could solve this riddle I
made which calls on a bunch of different rules.