Refactored code and make winning percentage show in match info and then update player