private void jButtonPlayActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonPlayActionPerformed
        this.setVisible(false);
        String name = this.game_name;
        Game game_frame = null;
    try {
      game_frame = new Game(name, PlayerMode.fromOrdinal(jSliderPlayerMode.getValue()), Color.convertToEnum(jComboBoxPlayer1.getSelectedItem().toString()), Color.convertToEnum(jComboBoxPlayer2.getSelectedItem().toString()));
    } catch (ClassNotFoundException ex) {
      Logger.getLogger(GameSettings.class.getName()).log(Level.SEVERE, null, ex);
    } catch (NoSuchMethodException ex) {
      Logger.getLogger(GameSettings.class.getName()).log(Level.SEVERE, null, ex);
    } catch (InstantiationException ex) {
      Logger.getLogger(GameSettings.class.getName()).log(Level.SEVERE, null, ex);
    } catch (IllegalAccessException ex) {
      Logger.getLogger(GameSettings.class.getName()).log(Level.SEVERE, null, ex);
    } catch (IllegalArgumentException ex) {
      Logger.getLogger(GameSettings.class.getName()).log(Level.SEVERE, null, ex);
    } catch (InvocationTargetException ex) {
      Logger.getLogger(GameSettings.class.getName()).log(Level.SEVERE, null, ex);
    }
        //game_frame.setBounds(this.getBounds());
        game_frame.setLocationRelativeTo(null); // center the position of this jFrame
        game_frame.setVisible(true);
    }//GEN-LAST:event_jButtonPlayActionPerformed