moved updatePhysics to the model