Estimating pi properly from monte carlo