runCmds vars labels ([v1,v2,v3]:rest)
    = runCmds (M.insert v1 (value v2 vars `nand` value v3 vars) vars)
        labels rest
runCmds vars labels ([v1,v2,v3]:rest)
    = runCmds (M.insert v1 (value v2 vars `nand` value v3 vars) vars)
        labels rest
runCmds vars labels ([v1,v2,v3]:rest)
    = runCmds (M.insert v1 (value v2 vars `nand` value v3 vars) vars)
        labels rest