Energy for N-body motion in two-dimensional gravity