cycle: move in direction. test space to right of direction - if empty, turn right. otherwise, test space in front - if full, turn left, then do it again.
once you get back to origin, kill all humans.
end of line.
(yes, this is exactly how I write algorithms when I'm playing with them :P)
(bonus points if you can figure out what this algorithm does.)
(besides killing all humans, that is.)