ArrayList<TypeEfficacy> getDefences()
	{
		ArrayList<TypeEfficacy> defences = new ArrayList<TypeEfficacy>();
		
		DatabaseController dbc = new DatabaseController("veekun-pokedex.sqlite");
		ArrayList<ArrayList<Object>> typeEfficacy = dbc.request(
					"SELECT t1.identifier, t2.identifier, te.damage_factor " +
					"FROM types AS t1, types AS t2, type_efficacy AS te " + 
					"WHERE t1.id=te.damage_type_id AND t2.id=te.target_type_id " +
					"AND t2.identifier='" + type1 + "'");
		if(type2 !=null)
		{
			typeEfficacy.addAll(dbc.request("SELECT t1.identifier, t2.identifier, te.damage_factor " +
					"FROM types AS t1, types AS t2, type_efficacy AS te " + 
					"WHERE t1.id=te.damage_type_id AND t2.id=te.target_type_id " +
					"AND t2.identifier='" + type2 + "'"));
		}
		for(ArrayList<Object> row:typeEfficacy)
		{
			String attackingType = (String)row.get(0);
			String defendingType = (String)row.get(1);
			int efficacy = (int)row.get(2);
			if (defendingType.equals(type1) || defendingType.equals(type2));
			{
				defences.add(new TypeEfficacy(attackingType, efficacy));
			}
		}
		
		return removeNormals(calculateMultiMathcup(defences));
	}