Update simulation.c