public void SaveBoard() { // check if the board is filled when user presses save. for (int i = 0; i < boards.Length; i++) { for (int j = 0; j < PlayerStats.Boards[i].cards.Length; j++) { if (PlayerStats.Boards[i].cards[j].GetComponent <Image>().sprite.name == blankName) { PlayerStats.Boards[i].isFull = false; } } } string filename = "Board" + (currBoard + 1) + ".sav"; SaveLoadController.SaveBoards(PlayerStats.Boards); }