added the winnerCheck function logic