public void fillMap( int numPlanets, ArrayList<Player> playerList )
    {
        PlayerList = playerList;
        Planet planet;
        double radius;
        int population;
        double x;
        double y;

        for( Player player : PlayerList )
        {
            radius = random.nextInt( 21 ) + 25;
            x = ( random.nextDouble() * ( this.getPrefWidth() - 2 * radius ) ) + radius;
            y = ( random.nextDouble() * ( this.getPrefHeight() - 2 * radius ) ) + radius;
            planet = new Planet( radius, x, y, 100, player, this );

            while( !noCollisions( planet ) )
            {
                x = ( random.nextDouble() * ( this.getPrefWidth() - 2 * radius ) ) + radius;
                y = ( random.nextDouble() * ( this.getPrefHeight() - 2 * radius ) ) + radius;
                planet = new Planet( radius, x, y, 100, player, this );
            }
            planet.spawn();
            PlanetList.add( planet );
        }
        for( int i=PlayerList.size(); i<numPlanets; i++ )
        {
            radius = random.nextInt( 21 ) + 25;
            population = random.nextInt( 13 ) + 3;
            x = ( random.nextDouble() * ( this.getPrefWidth() - 2 * radius ) ) + radius;
            y = ( random.nextDouble() * ( this.getPrefHeight() - 2 * radius ) ) + radius;
            planet = new Planet( radius, x, y, population, Player.NEUTRAL_PLAYER, this );
            while( !noCollisions( planet ) )
            {
                x = ( random.nextDouble() * ( this.getPrefWidth() - 2 * radius ) ) + radius;
                y = ( random.nextDouble() * ( this.getPrefHeight() - 2 * radius ) ) + radius;
                planet = new Planet( radius, x, y, population, Player.NEUTRAL_PLAYER, this );
            }
            planet.spawn();
            PlanetList.add( planet );
        }

        for( Player player : PlayerList )
        {
            for( Object obj : getChildren().toArray() )
            {
                if( obj instanceof Planet )
                {
                    if( !(((Planet)obj).Owner).equals( player ) )
                    {
                        player.EnemyPlanets.put( ((Planet)obj).ID, (Planet)obj );
                    }
                }
            }
        }
    }