working logistic regression for win/loss