debugged the model class and implemented the simulation at constant sand density