public void update() {
		speedX = bg.getSpeedX() * 5;
		tileX += speedX;
		r.setBounds(tileX, tileY, 40, 40);

		if (r.intersects(Robot.yellowRed) && type != 0) {
			checkVerticalCollision(Robot.rectBody, Robot.rectLegs);
			checkSideCollision(Robot.rectLeft, Robot.rectRight, Robot.footleft,
					Robot.footright);
		}
	}