public static Units[][] getUnitLayout(int layoutNum) {

		Units[][] unitList = new Units[10][10];
		
		try {

			Statement s1 = conn.createStatement();
			ResultSet rs = s1
					.executeQuery("Exec getUnitLocation @unitName = '" + layoutNum + "'");

			if (rs != null) {
				while (rs.next()) {

					for (int i = 0; i < letters.length; i++) {
						for (int j = 0; j < 10; j++) {
							String key = letters[i] + j;

							String unitName = rs.getString(key);

							if (unitName.equals("x")) {
								unitList[i][j] = null;
//								System.out.println("null");
							} else {
								unitList[i][j] = getUnitForName(unitName);
								unitList[i][j].setX(Main.TILE_SIZE * i);
								unitList[i][j].setY(Main.TILE_SIZE * j);
//								System.out.println(unitList[i][j].getUnitName());
							}

						}
					}
				}
			}

		} catch (Exception e) {
			e.printStackTrace();
		}
		
		return unitList;
	}