First port of files that can calculate the probality of win