public void ChangeLayers() {
		if (directionOfSteps == UP) {
			lower.setSize(finalw, finalh / 2);
			lower.setLocation(finalx + Engine.cam.x, finaly + (finalh / 2)
					+ Engine.cam.y);
			upper.setSize(finalw, finalh / 2);
			upper.setLocation(finalx + Engine.cam.x, finaly + Engine.cam.y);
		}
		if (directionOfSteps == DOWN) {
			lower.setSize(finalw, finalh / 2);
			lower.setLocation(finalx + Engine.cam.x, finaly + Engine.cam.y);
			upper.setSize(finalw, finalh / 2);
			upper.setLocation(finalx + Engine.cam.x, finaly + (finalh / 2)
					+ Engine.cam.y);
		}
		if (directionOfSteps == LEFT) {
			lower.setSize(finalw / 2, finalh);
			lower.setLocation(finalx + Engine.cam.x, finaly + Engine.cam.y);
			upper.setSize(finalw / 2, finalh);
			upper.setLocation(finalx + Engine.cam.x + (finalw / 2), finaly
					+ Engine.cam.y);
		}
		if (directionOfSteps == RIGHT) {
			lower.setSize(finalw / 2, finalh);
			lower.setLocation(finalx + (finalw / 2) + Engine.cam.x, finaly
					+ Engine.cam.y);
			upper.setSize(finalw / 2, finalh);
			upper.setLocation(finalx + Engine.cam.x, finaly + Engine.cam.y);
		}
		for (int i = 0; i < Engine.mb.MOBS.length; i++) {
			if (Engine.mb.MOBS[i].Layer == l) {
				if (Engine.mb.MOBS[i].forward.intersects(lower)) {
					if (Engine.mb.MOBS[i].Layer > 0) {
						Engine.mb.MOBS[i].Layer = LowerLayer;
					}
				} else if (Engine.mb.MOBS[i].forward.intersects(upper)) {
					if (Engine.mb.MOBS[0].Layer < Engine.mb.BLOCKS.length - 1) {
						Engine.mb.MOBS[i].Layer = HigherLayer;
					}
				}
			} else if (Engine.mb.MOBS[i].Layer == l + 1) {
				if (Engine.mb.MOBS[i].forward.intersects(lower)) {
					if (Engine.mb.MOBS[i].Layer > 0) {
						Engine.mb.MOBS[i].Layer = LowerLayer;
					}
				} else if (Engine.mb.MOBS[i].forward.intersects(upper)) {
					if (Engine.mb.MOBS[0].Layer < Engine.mb.BLOCKS.length - 1) {
						Engine.mb.MOBS[i].Layer = HigherLayer;
					}
				}
			}
		}
	}