his philosophy adopted the atomistic physics of democritus , but he also allowed for an element of chance in the physical world by postulating that atoms sometimes swerve in unpredictable ways , and so actually foretelling quantum physics .