public ConstructionPane(){
		super("constructionMenu");
		
		int buttonY = 10;
		int buttonX = 10;
		int offset = 0;
		
		for (int i = 0; i < allowed.length; i ++){
			if ((i + offset) % 8 == 0){
				buttonY = (((i + offset) / 8) * (32 + 4)) + 10;
			}
			
			
			if (GameRegistry.getTile(i).getSubTiles() > 0){
				for (int j = 0; j < GameRegistry.getTile(i).getSubTiles(); j++){
					buttonX = (((i + offset) % 8)* (32 + 4)) + 10;
					addButton((new TerrainButton(buttonX, buttonY, allowed[i], j)));
					offset++;
				}
				offset--;
			} else {
				buttonX = (((i + offset) % 8)* (32 + 4)) + 10;
				addButton((new TerrainButton(buttonX, buttonY, allowed[i], 0)));
			}
		}
	}