@Override
		public void collision(Engine engine, Entity v,boolean b) {
		 
			if(type==6)
			  {
				  boolean entitythere = false;
				  for(Entity q:engine.getWorld().getEntityList()){
					  if(entitythere)
						  continue;
					  if(q != null && (q.doesDamage()&&q.canDie()))
						  entitythere = true;
				  }
				  
				  if(!entitythere){
			 	       engine.playSound(this.getLocation().getX(),this.getLocation().getY(),"portal");
					 ((TestEngine)engine).curmission++;
					 ((TestEngine)engine).setWorld(((TestEngine)engine).getNextWorld());
				  }
				  
				  
				  
				  
			  }
		}