>> The issue that I am having is to be able to tell the user how much percentage of the games he has won at the end of each game.

How can you calculate the ratio if 'numwins' never get's updated?...