private Main() {
        JFrame frame = new JFrame("t3h n1nj4: j4v4 3d1t10n");

        Container contentPane = frame.getContentPane();
        contentPane.setPreferredSize(new Dimension(viewPort.width, viewPort.height));
        contentPane.setLayout(null);

        canvas = new Canvas();
        canvas.setBounds(viewPort.x, viewPort.y, viewPort.width, viewPort.height);
        canvas.setIgnoreRepaint(true);
        contentPane.add(canvas);

        frame.pack();
        frame.setResizable(false);

        canvas.createBufferStrategy(2);

        frame.setVisible(true);
        frame.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });

        canvas.requestFocus();
    }