public List getUnMarkedPositions() { List<XYLocation> retVal = new List<XYLocation>(); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { if (isEmpty(i, j)) { retVal.Add(new XYLocation(i, j)); } } } return retVal; }