if(redstone.getOutput("left") == true)then
  redstone.setOutput("left", false)
else
  redstone.setOutput("left", true)
end
