Worked on isWinner() function.