checkForWin and resetBoard