local p = peripheral.wrap("bottom")

while true do
  if p.getLabel("EAST") then
    shell.run("cart loop")
  else
    os.pullEvent("cart")
  end
end
