private void setUpListeners() {

    // Action listener for begin button
    beginButton.addActionListener (new ActionListener () {
      @Override
      public void actionPerformed(ActionEvent arg0) {
        player1Name.setForeground (Color.BLACK);
        player2Name.setForeground (Color.BLACK);

        createNewGame ();
      }
    });

    // Sets up code for the the combo boxes, enabling/disabling the appropraite
    // fields

    player1TypeComboBox.addActionListener (new ActionListener () {
      @Override
      public void actionPerformed(ActionEvent arg0) {
        if ( isPlayerAI (player1TypeComboBox) ) 
          player1DifficultyComboBox.setEnabled (true);

        else 
          player1DifficultyComboBox.setEnabled (false);

      }
    });

    player2TypeComboBox.addActionListener (new ActionListener () {
      @Override
      public void actionPerformed(ActionEvent arg0) {
        if ( isPlayerAI (player2TypeComboBox) ) 
          player2DifficultyComboBox.setEnabled (true);

        else 
          player2DifficultyComboBox.setEnabled (false);

      }
    });

    timerCheckBox.addActionListener (new ActionListener () {
      @Override
      public void actionPerformed(ActionEvent arg0) {
        //Checks whether or not the timer is selected, if it is then it disables it
        //otherwise it enables it
        if ( timerCheckBox.isSelected () ) timerDataCheckBox.setEnabled (true);
        else if ( !timerCheckBox.isSelected () ) timerDataCheckBox.setEnabled (false);

      }
    });

  }