refactored checking for winners