Updated checkWin()