Pseudocode
    Search behind for resource
        resource found and resource is not oil
            find first empty space in front of machine
            teleport resource to the empty space
            Continue searching
            
            

