added the function getWinning Percentage, and developed a test package