fixed the isWinner function to look for four in a row