Autonomous robots moving on a discrete space