This word is used here to mark a break in the main story while the writer tells background information. (See: [[rc://en/ta/man/jit/writing-background]])
It is unclear what Samson did to entertain them. It seems the Philistines were making him do things that would humiliate him so that they could make fun of him.