private void writeScoreList(OutputStream out, List<Score> scores) throws IOException {
		
		writeInt(out, scores.size());
		
		for (Score score : scores) {
			writeString(out, score.getShipName());
			writeString(out, score.getShipType());
			writeInt(out, score.getScore());
			writeInt(out, score.getSector());
			writeInt(out, score.isVictory() ? 1 : 0 );
			switch( score.getDifficulty() ) {
				case NORMAL: writeInt(out, 0); break;
				case EASY: writeInt(out, 1); break;
				default: throw new IOException("Invalid difficulty value: " + score.getDifficulty());
			}
			
		}
		
	}