protected void sendField(ObjectOutputStream out, Tile[][] field) {
		int[][] output = new int[11][11];
		
		for (int x=0; x<11; x++) {
			for (int y=0; y<11; y++) {
				output[x][y] = -1;
			}
		}
		
		for (int x=0; x<10; x++) {
			for (int y=0; y<10; y++) {
				if (field[x][y] != null)
					output[x+1][y+1] = field[x][y].direction;
				else output[x+1][y+1] = -1;
			}
		}
		
		try {
			out.writeObject(output);
			out.flush();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}