Given a -sided polygon , (informally) we take the sides in pairs and identify each pair of sides. We can choose to identify a pair in the same or opposite direction.
The resulting quotient space is a closed surface.
all these pages adapted with probably insufficient credit from my university's lecture notes