In lua, iterating over arrays&#x2F;tables with things like ipairs() is the idiom, so it&#x27;s not so bad, but if you want to do anything involving mod, you have to add an extra plus 1. this is where bugs happen.