public static void main(String[] args) throws Exception {
        game = new XPilotGame();
        view = new View(game);
        SoundManager.load();
        JEasyFrameFull win = new JEasyFrameFull(view);
        win.addKeyListener((Keys)game.getCtrl());
        // run the game
        while (true) {
            game.update();
            Action act = game.getCtrl().action(game);
            if (!fullScreenMode && act.fullScreen) {
                fullScreenMode = true;
                win.setDimensionsToFullScreen();
                view = new View(game);
                win.setFullScreen(view);
            }
            else if (fullScreenMode && !act.fullScreen) {
                fullScreenMode = false;
                win.setDimensionsToSmallScreen();
                view = new View(game);
                act.fullScreen = false;
                win.setSmallScreen(view);
            }
            view.repaint();
            Thread.sleep(Constants.DELAY);
        }

    }