public void update() {
		speed = bg.getSpeed() * Starter.PACE;
		x += speed;
		r.setBounds(x, y, 40, 40);
		
		if (r.intersects(Robot.getCollisionArea()) && type != null) {
			checkVerticalCollision(Robot.getRtop(), Robot.getRbot());
			checkSideCollision(Robot.getRlefth(), Robot.getRrighth(), Robot.getRleftf(), Robot.getRrightf());
		}
		
	}