setDefaultCloseOperation(EXIT_ON_CLOSE);
if (FULLSCREEN) {
GraphicsEnvironment environment = GraphicsEnvironment
.getLocalGraphicsEnvironment();
GraphicsDevice myDevice = environment.getDefaultScreenDevice();
DisplayMode oldDisplayMode = myDevice.getDisplayMode();
setBounds(getGraphicsConfiguration().getBounds());
getGraphicsConfiguration().getDevice().setFullScreenWindow(
Skeleton.that);
getGraphicsConfiguration().getDevice().setDisplayMode(
new DisplayMode((int) Math.round(WIDTH * SCALE), (int) Math
.round(HEIGHT * SCALE), oldDisplayMode
.getBitDepth(), oldDisplayMode.getRefreshRate()));
}
Board game = new Board();
game.setPreferredSize(new Dimension((int) Math.round(WIDTH * SCALE),
(int) Math.round(HEIGHT * SCALE)));
getContentPane().add(game);