package viewer;

import maze.Maze;

import javax.swing.*;
import java.awt.*;

/**
 * Created by nick on 8/23/15.
 */
public class MazeViewer extends JFrame {

    private JPanel panel;

    public MazeViewer(Maze maze, int cellSize, int gapSize){
        this.panel = new MazePanel(maze, cellSize, gapSize);
        setContentPane(this.panel);
        int width = (maze.getWidth() + 1) * (cellSize + gapSize) + gapSize;
        int height = (maze.getHeight() + 1) * (cellSize + gapSize) + gapSize;
        this.setPreferredSize(new Dimension(width, height));
        this.pack();
        this.setVisible(true);
    }
}

@@ -179,16 +179,115 @@
 panel;%0A%0A
+    public MazeViewer(Maze maze, int cellSize)%7B%0A        this(maze, cellSize, cellSize / 4);%0A    %7D%0A%0A
     publ

Add simplified constructor