public DialogFrame(Game owner,DialogMessage message)
    {
        super("Game Over!");

        this.msg = message;

        if(owner != null)
        {
            setLocationRelativeTo(owner);
        }

        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        setResizable(false);

        backgroundImage = new ImageIcon(this.getClass().getResource("/Resources/DialogPane/Background.png"));
        setSize(backgroundImage.getIconWidth(), backgroundImage.getIconHeight() + 15);


        setVisible(true);

    }