Simulation where molecules can be built from atoms