Added checkForWin and resetBoard