Round Robin Problem in Lua