m = peripheral.wrap("top")
m.clear()

function text()
  m.clear()
  if not redstone.getInput("bottom") then
    m.setTextScale(2)
    m.setCursorPos(1, 2)
    m.write "  Right Click"
    m.setCursorPos(1, 3)
    m.write "   To Go To"
    m.setCursorPos(1, 5)
    m.write "   Factory"
  end
end

text()

while true do
  e = os.pullEvent()
  if e == "monitor_touch" then
    if not redstone.getInput("bottom") then
      redstone.setOutput("left", true)
      os.sleep(.5)
      redstone.setOutput("left", false)
    end
  elseif e == "redstone" then
    text()
  end
end
