In the x-y plane, the point (3,1) lies on the graph of the function g. If g(x) = a - 2 x^2, where a is a constant, what is the value of a ?