public void removeOutside(){
		if(outsideTimesCounter < xGen / grid / 2){
			for(int i = 0; i < yGen / grid; i++){
				if(rects[outsideCounter].type != INDESTRUCTUBLOCK)rects[outsideCounter].type = 0;
				outsideCounter += xGen / grid;
			}
			for(int i = 0; i < yGen / grid; i++){
				if(rects[rightOutsideCounter].type != INDESTRUCTUBLOCK)rects[rightOutsideCounter].type = 0;
				rightOutsideCounter += xGen / grid;
			}
			outsideTimesCounter++;
			outsideCounter = outsideTimesCounter;
			rightOutsideTimesCounter--;
			rightOutsideCounter = rightOutsideTimesCounter;
			
		}
	}