Code:
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics;
import javax.swing.JFrame;
public class Game extends JFrame {
Board theBoard = new Board();
FileHandler theFileHandler = new FileHandler(theBoard);
Graphic Drawspace = new Graphic(theBoard);
Game(){
getContentPane().setLayout(new FlowLayout());
getContentPane().add(Drawspace);
Drawspace.repaint();
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
setVisible(true);
}
public void paint(Graphics g){
paintComponents(g);
}
public static void main(String[] args) {
Game theGame = new Game();
}
}

