change int to long for sumXsquared
Make able to set win probability