Simulator for robots moving on grids