private void SyncWithGame() { Debug.Log("sync with game"); SmartSquare[,] board = game.GetCurrentState(); for (int row = 0; row < 8; row++) { for (int col = 0; col < 8; col++) { int i = row * 8 + col; GameView[i].ToggleActive(true); //set the token GameView[i].PlaySpace().SetToken(board[row, col].unit.token, board[row, col].unit.player); } } string scoreText = game.ScoreForCurrentState().ToString(); AndyScoreDisplay.text = scoreText; ActivateFromSpaces(); Debug.Log("finnished sync"); }