refactor how winners are found