Simulator.cpp: manage the cells