simHours = 48 while distance (snow, ground) > 0 and simHours > 0: for each in snow.SubComponents.ElementArray.PointPosition: move (each, [0, -1, 0] simHours += -1 makePhotoFromKitchen()