public void addCar(int x, int y, int type, int code){
		switch(type){
		case Car.GO_UP:
			if(code==9)
				carsBottom.add(new Tank(x, y, type, code));
			else
				carsBottom.add(new Car(x, y, type, code));
			break;
		case Car.GO_DOWN:
			if(code==9)
				carsTop.add(new Tank(x, y, type, code));
			else
				carsTop.add(new Car(x, y, type, code));
			break;
		case Car.GO_RIGHT:
			if(code==9)
				carsLeft.add(new Tank(x, y, type, code));
			else
				carsLeft.add(new Car(x, y, type, code));
			break;
		case Car.GO_LEFT:
			if(code==9)
				carsRight.add(new Tank(x, y, type, code));
			else
				carsRight.add(new Car(x, y, type, code));
			break;
			default: break;
		}
	}