isWin() modified