Created the checkForWinner().