Added checkForWin.