private void serverLogic(ArrayList<Tank> tanks) {
		int survivorNum=0;
		int serverMsg = -1;
		if(tanks.size()>0){
			serverMsg = tanks.get(0).getServerMsg();
		}
		if( serverMsg==Tank.S_ROUND_SWITCHING ){
			for(Tank t:tanks){
				t.setServerMsg(Tank.S_ROUND_SWITCHING);
				t.setRoundCount(roundCount);
				t.setRoundNum(roundNum);
			}
			roundCount--;
			
			if( roundCount<0 ){
				for(Tank t:tanks){
					t.reset();
				}
			}
		}
		else if( serverMsg==Tank.S_PLAYING ){
			for(Tank t:tanks){
				if(!t.isDeadFinish()){
					survivorNum++;
					if(survivorNum>1){
						break;
					}
				}
			}
			if( survivorNum<=1 && tanks.size()>=2 ){
				roundNum++;//һغ
				//ü
				roundCount=MAX_ROUND_COUNT;
				
				for(Tank t:tanks){
				    	t.getBullets().clear();
						t.setServerMsg(Tank.S_ROUND_SWITCHING);
						if( !t.isDeadFinish() && t.getType()!=Tank.OZ_TANK ){
							t.setType(Tank.BLACK_TANK);
						}
						else if( t.getType()!=Tank.OZ_TANK ){
							t.setType(Tank.GENERAL);
						}
				}
			}
		}
			
	}