got the simulation to run automatically over a grid