public void tick(){
		tickCount++;	
		
		for(cell[] p1: bitMap.Map){  // foreach grade in grades
			for(cell q1: p1){
				
				try{
					q1.Resident.ready = 1;
	
				}catch(NullPointerException e ){
				}
			}}
				
		for(cell[] p: bitMap.Map){  // foreach grade in grades
		for(cell q: p){
			
			try{
				q.Resident.tick();
				
			//	q.Resident.move(-1,1);
			}catch(NullPointerException e ){
			}
		}  }
		
	

		//pixels[i] = i + tickCount;
		 //pixels[i] = i % tickCount * tickCount;
		pixels = bitMap.mark();}