Im sorry, my mistake, need to change this ...
pushgate1 = {x=gatepos.x, y=gatepos.y + 1, z=gatepos.z, stackpos=gatepos.stackpos}
pushgate2 = {x=gatepos.x, y=gatepos.y + 1, z=gatepos.z, stackpos=gatepos.stackpos}
pushgate3 = {x=gatepos.x, y=gatepos.y + 1, z=gatepos.z...