Added win condition isWinning in Model