private Window() {
        // Sets the title for this frame.
        this.setTitle("Race Car Game");

        // Sets size of the frame, checks for full screen
        if (false) // Full screen mode
        {
            // Disables decorations for this frame.
            this.setUndecorated(true);
            // Puts the frame to full screen.
            this.setExtendedState(this.MAXIMIZED_BOTH);
        } else // Window mode
        {
            // Size of the frame.
            this.setSize(1200, 800);
            // Puts frame to center of the screen.
            this.setLocationRelativeTo(null);
            // So that frame cannot be resizable by the user.
            this.setResizable(false);

        }

        // Exit the application when user close frame.
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        this.setContentPane(new Framework());

        this.setVisible(true);
    }