@Override
	public void paintComponent(Graphics g)
	{
		super.paintComponent(g);
		switch(rank){
		case 2:
			drawBamboo(g, 49, 13, Color.BLUE);
			drawBamboo(g, 49, 34, MYGREEN);
			break;
		case 3:
			drawBamboo(g, 49, 13, Color.BLUE);
			drawBamboo(g, 35, 34, MYGREEN);
			drawBamboo(g, 63, 34, MYGREEN);
			break;
		case 4:
			drawBamboo(g, 35, 13, Color.BLUE);
			drawBamboo(g, 35, 34, MYGREEN);
			drawBamboo(g, 63, 13, MYGREEN);
			drawBamboo(g, 63, 34, Color.BLUE);
			break;
		case 5:
			drawBamboo(g, 28, 13, MYGREEN);
			drawBamboo(g, 28, 34, Color.BLUE);
			drawBamboo(g, 49, 25, Color.RED);
			drawBamboo(g, 70, 13, Color.BLUE);
			drawBamboo(g, 70, 34, MYGREEN);
			break;
		case 6:
			drawBamboo(g, 28, 13, MYGREEN);
			drawBamboo(g, 28, 34, Color.BLUE);
			drawBamboo(g, 49, 13, MYGREEN);
			drawBamboo(g, 49, 34, Color.BLUE);
			drawBamboo(g, 70, 13, MYGREEN);
			drawBamboo(g, 70, 34, Color.BLUE);
			break;
		case 7:
			drawBamboo(g, 49, 3, Color.RED);
			drawBamboo(g, 28, 25, MYGREEN);
			drawBamboo(g, 28, 46, Color.BLUE);
			drawBamboo(g, 49, 25, MYGREEN);
			drawBamboo(g, 49, 46, Color.BLUE);
			drawBamboo(g, 70, 25, MYGREEN);
			drawBamboo(g, 70, 46, Color.BLUE);
			break;
		case 8:
			drawBamboo(g, 28, 3, MYGREEN);
			drawBamboo(g, 28, 46, Color.BLUE);
			drawBamboo(g, 49, 3, MYGREEN);
			drawBamboo(g, 49, 46, Color.BLUE);
			drawBamboo(g, 70, 3, MYGREEN);
			drawBamboo(g, 70, 46, Color.BLUE);
			drawBamboo(g, 35, 24, Color.RED);
			drawBamboo(g, 63, 24, Color.RED);
			break;
		case 9:
			drawBamboo(g, 28, 3, Color.RED);
			drawBamboo(g, 28, 24, Color.RED);
			drawBamboo(g, 49, 3, Color.BLUE);
			drawBamboo(g, 49, 24, Color.BLUE);
			drawBamboo(g, 70, 3, MYGREEN);
			drawBamboo(g, 70, 24, MYGREEN);
			drawBamboo(g, 28, 46, Color.RED);
			drawBamboo(g, 49, 46, Color.BLUE);
			drawBamboo(g, 70, 46, MYGREEN);
			break;
		}
		
	}