public void upDateLocations(Drawable i) //Updates the locations of moving objects in the game and moves things to different sectors when needed.
{
	
   i.setX(i.getX() + i.getVelocityX());	
   i.setY(i.getY() + i.getVelocityY());
   if(i.getX() <= 0){
	   
	   if(activeX !=0)
	   {
		   activeX--;
		   setActiveSector();
		   i.setX(this.getWidth());
	   }else{activeX=sector.length-1;}
	   
	   
   }
   if(i.getX() >this.getWidth()){
	   
	   if(activeX !=sector.length-1)
	   {
		   activeX++;
		   setActiveSector();
		   i.setX(1);   
	   }else{activeX=0;}
	   
   }
   if(i.getY() <= 0){
	  
	   if(activeY !=0)
	   {
		 activeY--;
		 setActiveSector();
		 i.setY(this.getHeight()); 
	   }else{
		activeY=sector[0].length-0;   
	   }
	   
   }
   if(i.getY() >this.getHeight()){
	   
	   if(activeY !=sector[0].length-1)
	   {
		   activeY++;
		   setActiveSector();
		   i.setY(1);
	   }else{
		activeY=0;   
	   }
	   
   
   }
   }