While I was working on my project for Li Chi Slays the Serpent, in general for most projects while working on the meat of it end up thinking about how I want things to end. I basically didn't want her to turn out to be a noble person with the moral high ground at the end of all of it. I wanted her to be the type of person to do bad things for noble reasons. That and at the time I was reading Umineko so the idea of her becoming a gambling cyber witch was an idea that appealed to me a lot.
Also just a general reference to Francis Bacon