Dogwalker's algorithm

if
      poop
then
      scoop