optimized the code and the program now shows the percentage of won games instead of the number of games