Even without autoglobal, it's not necessary to say `global mx, my` here, because you're not assigning to the names mx or my (you're simply manipulating the mutable data structures to which they refer).