"definitely agree with this, but how could you specifically change the laws in this case such that they are still, by some measure, "fair" and "just"?"
This is a really deep question, which is part of why I dropped the entire discussion on the topic in my initial post so I wouldn't get too sidetracked.
One problem we have is that if we can encode laws into computer programs, which is to say, basically math, we also become subject to the problems that creates. For instance, raise your hand if you enjoy min-maxing in an RPG or MMO or something. Now, keep your hands raised and add a big evil grin for me if you'd love the opportunity to minmax real laws with such impunity.
In theory, even human enforcement is a computational system which could in theory be attacked the same way, but in its own weird way, its own enormous complexity and frankly at times random enforcement prevents the really terrible gaming of the law by preventing an attacking entity from fully accurately simulating the system for the purposes of attacking it.
(I said something that may trigger some knee-jerk reactions in some people about "gaming" the system. But however bad you think it is in the real world... and I would agree that it is bad in many places... it has nothing on the gaming you can do on something specified with programmatic precision and with no human in the loop to prevent truly stupid states from emerging. This isn't making your way to the top over the years by bribery and flattery, this is waking up one day and discovering that one person has literally all the money now.)