public void setBoard(List<XYLocation> locs) { int count = 0; for (int i = 0; i < locs.Count; i++) { XYLocation loc = locs.get(i); this.setValue(loc.getXCoOrdinate(), loc.getYCoOrdinate(), count); count = count + 1; } }