Wow! Great Idea! Very challenging, but rewarding when you apply logic.
Idea: LMB sets 0 as first number, RMB sets 1 first… and then toggles just as in the game now. That way gameplay could be more efficient. Right now you always set a 0 first – no matter what you plan to set.