public void setQuality(Fleet fleet) {
		for (int x = 0; x < size; x++) {
			for (int y = 0; y < size; y++) {
				if (!board[x][y].isHit()) {
					int quality = 0;
					int horLeft = countNoHitFields(x, y, Directions.LEFT);
					int horRight = countNoHitFields(x, y, Directions.RIGHT);
					int verDown = countNoHitFields(x, y, Directions.DOWN);
					int verUp = countNoHitFields(x, y, Directions.UP);
					int horTot = horLeft + horRight - 1;
					int verTot = verUp + verDown -  1;
					int horMin = Math.min(horLeft, horRight);
					int verMin = Math.min(verUp, verDown);
					Iterator <Boat> it = fleet.getIterator();
					while (it.hasNext()) {
						Boat b = (Boat) it.next();
						if (horTot >= b.getLength()) {
							if (horMin < b.getLength()) {
								quality += horMin;
							} else {
								quality += b.getLength();
							}
						}
						if (verTot >= b.getLength()) {
							if (verMin < b.getLength()) {
								quality += verMin;
							} else {
								quality += b.getLength();
							}
						}
					}
					board[x][y].setQuality(quality);
				}
			}
		}
	}