public void update(GameContainer gc, StateBasedGame sb, float delta) {
		if (cooldown <= 0) {
			cooldown = 0;
			onCooldown = false;

		} else if (onCooldown) {
			if(beamTimer >=5000){
				beamOn=false;
			}
			beamTimer+=delta;
			cooldown -= delta;
		}

	}