A particle model of the Stefan problem