calculate batting average and wOBA inside the new statsService