// size and layout
frame.setSize(new Dimension(640, 440));
frame.setLayout(new BorderLayout());
// drawing area
drawingArea = new DrawingArea(board, boardState);
// pannel for the toolbar and drawing area
JPanel panel = new JPanel(new BorderLayout());
panel.add(new ToolBarBuilder().createToolBar(boardState,this),BorderLayout.NORTH);
panel.add(drawingArea, BorderLayout.CENTER);