added winPercentage calculation method and constructor