if (SettlerMap.isIntersection(data.map.isOriginDown, location)) {
// are there enough resources?
Map<TileTypes, Integer> cost = getCost(type);
Iterator<?> iterator = cost.keySet().iterator();
TileTypes currentResource;
while (iterator.hasNext()) {
currentResource = (TileTypes) iterator.next();
if (data.players.get(player).getResourceAmount(
currentResource) < cost.get(currentResource)) {