title: an enclosing instance is required...?
body: <p>I was wondering if anyone knew how to fix this error? It shows up for playerA, playerB, and playerC when I try to make them into an AbstractPlayerImpl. The error says "an enclosing instance is required" </p>
  
  <pre><code>/**
   * Test the getNextPlayer method.
   * 
   * @throws IllegalPlayerNameException thrown if the player name is invalid.
   */
  @Test
  public void testGetNextPlayer()
          throws IllegalPlayerNameException
  {
      final AbstractTurnBasedGameImpl game;
      final PlayerNameValidator validator;
      final PlayerNameConverter converter;
      final Player playerA;
      final Player playerB;
      final Player playerC;
  
      validator = DefaultPlayerNameValidator.create();
      converter = DefaultPlayerNameConverter.create();
      playerA = new AbstractPlayerImpl("A",
                                       validator, converter);
      playerB = new AbstractPlayerImpl("B",
                                       validator, converter);
      playerC = new AbstractPlayerImpl("C",
                                       validator, converter);
      game = new AbstractTurnBasedGameImpl (playerA, playerB, playerC);
  </code></pre>
  
  <hr>
  
  <pre><code>/**
   * A simple player.
   */
  public class AbstractPlayerImpl extends AbstractPlayer 
  {
      /**
       * Construct an AbstractPlayerImpl with the specified arguments.
       * 
       * @param nm the player name.
       * @param validator used to check the player name.
       * @param converter used to convert the player name.
       * 
       * @throws IllegalPlayerNameException if the player name is invalid. 
       */
      public AbstractPlayerImpl(
              final String nm,
              final PlayerNameValidator validator,
              final PlayerNameConverter converter) 
              throws IllegalPlayerNameException 
      {
          super(nm, validator, converter);
      }
  }
  </code></pre>