public List<Cell> getCells(int color) {
		List<Cell> cells = new ArrayList<Cell>();
		for (int x = 0; x < getHeight(); x++) {
			for (int y = 0; y < getWidth(); y++) {
				if (sameColor(new Point(y, x), color)) {
					cells.add(grid[x][y]);
				}
			}
		}
		return cells;
	}