public void update() {
		centerX += speedX;
		speedX = bg.getSpeedX()*5;
		
		getHeliBoy1().setBounds(centerX - 25, centerY - 25,50,60);
		getHeliBoy2().setBounds(centerX - 25, centerY - 25,50,60);
		
		if (getHeliBoy1().intersects(Robot.yellowRed) || getHeliBoy2().intersects(Robot.yellowRed)){
			checkCollision();
		}
			
		centerY += speedUpdown;
		maxRange += 1;

		if (maxRange >= 20) {
				maxRange = 0;
				if (speedUpdown == -1) {
					speedUpdown = 1;
				} else {
					speedUpdown = -1;
				}
			}
		}