void ClearLists() { foreach (GameObject cube in CubeList) { GameObject.Destroy(cube); } Spaces.Clear(); CubeList.Clear(); }