--spinds and check for ajcencent tree
--if it finds one it move up while
--chopping. It expects uppon moving
--down it goes to the bottom, 1 up
--and sucks, to enable collection of
--saplings via water transport.

local noop = function() end

local function fell()
 while turtle.dig() do 
  turtle.digUp()
  turtle.up()
 end
 while turtle.down() do
   noop()
 end  
 turtle.up()
end

while true do
 turtle.select(1)
 if turtle.compare() then
  fell()
  turtle.select(2)
  turtle.place()
 end
 sleep(10)
 turtle.turnRight()
 turtle.suck()
 turtle.suckUp()
 turtle.suckDown()
 print(turtle.getFuelLevel())
end
