added checkForWin