flagellant: a person who is whipped or whips himself for sexual gratification
masochist: someone who obtains pleasure from receiving punishment
grid: a pattern of regularly spaced horizontal and vertical lines