fixed checkWin