This is not in the traditional sense of "the emperor reorganizing the harem by power", but:
An emperor who thought he was quite sane, watched helplessly as everyone in the harem used palace fighting methods against a god who did not belong to this world based on their palace fighting experience.
Everyone thought they were competing for favor in the harem.
Only the emperor gradually realized that they were actually participating in a survival assessment called "How to avoid karma".
And most people turn in papers that get them negative marks.