public void drawHeroArmed(int cx, int cy, Graphics g, String dir) {
		int xi = 0, xf = 0, yi = 0, yf = 0;

		if (dir.equals("down")) {
			yi = 8;
			yf = 215;

		} else if (dir.equals("up")) {
			yi = 455;
			yf = 663;

		} else if (dir.equals("right")) {
			yi = 673;
			yf = 880;

		} else if (dir.equals("left")) {
			yi =223;
			yf = 432;

		}

		if (frame % 5 == 0) {
			xi = 138;
			xf = 365;

		}

		else if (frame % 5 == 1) {
			xi = 367;
			xf = 584;

		} else if (frame % 5 == 2) {
			xi = 584;
			xf = 806;

		} else if (frame % 5 == 3) {
			xi = 806;
			xf = 1027;

		} else if (frame % 5 == 4) {
			xi = 1027;
			xf = 1255;

		}
		g.drawImage(heroArmed, stx + cx, sty + cy - (sqSize / 2), stx + cx + sqSize,
				sty + cy + sqSize - (sqSize / 2), xi, yi, xf, yf, null);

	}