* adjust updateBoardStats and updateStats function.