private void drawPlayer(SnakePlayer player, Grafico g){

		Color color = player.getArrow().getColor();

		drawBlock(x,y,color,g);

		int lastBodyPartX = player.getX();
		int lastBodyPartY = player.getY();

		for(Character bodyPart: player.getBody()){

			switch(bodyPart){

			case(SnakeProtocol.BODY_UP):
				lastBodyPartY--;
				if(lastBodyPartY<0){
					lastBodyPartY+=h;
				}
				break;
			case(SnakeProtocol.BODY_DOWN):
				lastBodyPartY++;
				if(lastBodyPartY>w){
					lastBodyPartY-=h;
				}
				break;
			case(SnakeProtocol.BODY_LEFT):
				lastBodyPartX--;
			
				if(lastBodyPartX<0){
					Logger.log(lastBodyPartX);
					lastBodyPartX+=w;
					Logger.log(lastBodyPartX);
				}				
				break;
			case(SnakeProtocol.BODY_RIGHT):
				lastBodyPartX++;
				if(lastBodyPartX>0){
					lastBodyPartX-=w;
				}
				break;
			}

			drawBlock(lastBodyPartX, lastBodyPartY, color, g);
		}

	}