public void actionPerformed(ActionEvent e) {
        Object obj = e.getSource();
        
        //====Opens the JFrames when the navigation buttons are clicked====
        if(obj == instructions)     {injf.setVisible(true);}
        if(obj == options)          {ojf.setVisible(true);}

        if(obj == newGame)          
        {

                ngf.setVisible(true);
         
        }
        if(obj == about)            {ajf.setVisible(true);}
        
        //====Closes the JFrames when the user clicks "Close"====
        if(obj == injf.injp.close)  {injf.setVisible(false);}
        if(obj == ojf.ojp.close)    {ojf.setVisible(false);}
        if(obj == ajf.ajp.close)    {ajf.setVisible(false);}
    }