I did the thing on your screenshot for a shovel bot and looped it forever and it worked but i dont know why your program has issues