public void generateButtons(int x, int y) {
		if (!tileLocations[x - 1][y] && getButton(x-1, y) == null) {
			TilePlacementButton button = new TilePlacementButton(x - 1, y);
			activeButtons.add(button);
			add(button, new GBC(x - 1, y));
			button.addActionListener(new AddTileAction(x - 1, y));
		}
		if (!tileLocations[x][y - 1] && getButton(x, y-1) == null) {
			TilePlacementButton button = new TilePlacementButton(x, y - 1);
			activeButtons.add(button);
			add(button, new GBC(x, y - 1));
			button.addActionListener(new AddTileAction(x, y - 1));
		}
		if (!tileLocations[x + 1][y] && getButton(x+1, y) == null) {
			TilePlacementButton button = new TilePlacementButton(x + 1, y);
			activeButtons.add(button);
			add(button, new GBC(x + 1, y));
			button.addActionListener(new AddTileAction(x + 1, y));
		}
		if (!tileLocations[x][y + 1] && getButton(x, y+1) == null) {
			TilePlacementButton button = new TilePlacementButton(x, y + 1);
			activeButtons.add(button);
			add(button, new GBC(x, y + 1));
			button.addActionListener(new AddTileAction(x, y + 1));
		}
		pack();
	}