refactored method to find winner