public AbilityPanel(int controlPanelHeight, ControlPanel controlPanel) {
		super();
		this.owner = controlPanel;
		this.setPreferredSize(new Dimension(200, controlPanelHeight));
		this.setBackground(Color.RED);
		this.layout = new GridLayout(size, size);
		this.layout.setHgap(10);
		this.layout.setVgap(10);
		this.setLayout(layout);
		this.abilitiesListed = new TreeSet<String>();
		this.selectedAbility = null;
		buttons = new AbilityButton[size * size];
		for(int i = 0; i < size * size; i++) {
			AbilityButton but = new AbilityButton();
			but.setVisible(false);
			buttons[i] = but;
			this.add(but);
		}
		cur = 0;
	}