private void Update() //Update UIs { scoreText.text = match.score.ToString() + "/" + match.targetScore.ToString(); int movesLeft = (match.totalMoves - match.moves); movesText.text = movesLeft.ToString(); if (movesLeft <= 0) { match.LockBoard(true); } if (match.score >= match.targetScore) { if (!isWon) //only call once { WinHandler.CallWin(match.difficulty); isWon = true; } } }