public void build(String type, Tile location) {
		if (mana.hasEnough(costs.get(type)) && location.getConstruct()==null && (!updater.getGameState().equals("win") &&
		        !updater.getGameState().equals("lose"))) {
			Construct construct = null;

			if(type.equals("tower") && location.getType().equals("FieldTile")) {
				construct = new Tower((FieldTile) location);
			} else if(type.equals("barricade") && location.getType().equals("PathTile")) {
				construct = new Barricade((PathTile) location);
			} else
				return;

			location.addConstruct(construct);
			mana.decrease(costs.get(type));
			updater.addConstruct(construct);
		}
	}