merge methods isWin and winningButtons