Fixed the explosions. Turns out I wasn't resetting the force on the atoms!