Unit test for isWinner, Bugs in isWinner fixed