Added checkForWin