public void setRectangles() {
		if (direction == def.Frame.UP) {
			forward.setSize(finalw, def.Frame.SPEED);
			forward.setLocation(finalx + Engine.cam.x, finaly + Engine.cam.y
					+ (def.Frame.SPEED));
		}
		if (direction == def.Frame.DOWN) {
			forward.setSize(finalw, def.Frame.SPEED);
			forward.setLocation(finalx + Engine.cam.x, finaly + Engine.cam.y
					+ finalh - (def.Frame.SPEED * 2));
		}
		if (direction == def.Frame.LEFT) {
			forward.setSize(def.Frame.SPEED, finalh);
			forward.setLocation(finalx + Engine.cam.x + (def.Frame.SPEED),
					finaly + Engine.cam.y);
		}
		if (direction == def.Frame.RIGHT) {
			forward.setSize(def.Frame.SPEED, finalh);
			forward.setLocation(finalx + Engine.cam.x + finalw
					- (def.Frame.SPEED * 2), finaly + Engine.cam.y);
		}
		r.setSize(finalw, finalh);
		r.setLocation(finalx + Engine.cam.x, finaly + Engine.cam.y);

		up.setSize(finalw, def.Frame.SPEED);
		down.setSize(finalw, def.Frame.SPEED);
		left.setSize(def.Frame.SPEED, finalh);
		right.setSize(def.Frame.SPEED, finalh);

		up.setLocation(finalx + Engine.cam.x, (finaly + Engine.cam.y)
				- def.Frame.SPEED);
		down.setLocation(finalx + Engine.cam.x,
				(finaly + finalh + Engine.cam.y));
		left.setLocation(finalx + Engine.cam.x - def.Frame.SPEED, finaly
				+ Engine.cam.y);
		right.setLocation(finalx + finalw + Engine.cam.x, finaly + Engine.cam.y);

	}