public ButtonPanel(int controlPanelHeight, ControlPanel controlPanel) {
		super();
		this.setPreferredSize(new Dimension(200, controlPanelHeight));
		this.setBackground(Color.blue);
		GridLayout layout = new GridLayout(size, size);
		layout.setHgap(10);
		layout.setVgap(10);
		setLayout(layout);
		buttons = new JButton[size * size];
		for(int i = 0; i < size * size; i++) {
			buttons[i] = new JButton();
			buttons[i].setVisible(false);
			add(buttons[i]);
		}
		cur = 0;
	}