Text this: N-body dynamics on closed surfaces