public void createTrainerImages()
    {
    	URL url;
    	if(trainer!=null)
    	{
    		if(trainer.type==Trainer.TrainerType.GYM_LEADER||trainer.type==Trainer.TrainerType.ELITE)
    		{
    			url = Pokemon.class.getResource("Sprites/trainers/"+ trainer.name + ".png");
    			enemyTrainerImage=Toolkit.getDefaultToolkit().createImage(url);
    		}
    		else
    		{
    			url = Pokemon.class.getResource("Sprites/trainers/"+ trainer.type + ".png");
    			enemyTrainerImage=Toolkit.getDefaultToolkit().createImage(url);
    		}
    	}

    	url = Pokemon.class.getResource("Sprites/trainers/userTrainer.png");
    	userTrainerImage=Toolkit.getDefaultToolkit().createImage(url);
    }