at the last boat he reached into his pocket and pulled out a fistful of matches , crouching in pain and frantically striking one after another on the wooden planks of the dock and lobbing them into the globs of scattered jelly until the flames leaped up from all the coverings .