need to finish functions to find winner.