public void update() {
		if (x + main.x <= 0)
			x += 2;
		if (y + main.y <= 0)
			y += 2;
		if (x + main.x >= (main.width * main.scale) - tex.getWidth(tex.player[0]))
			x -= 2;
		if (y + main.y >= (main.height * main.scale) - tex.getHeight(tex.player[0]))
			y -= 2;

		anim.runAnimation();

		for (int i = 0; i < main.eb.size(); i++) {
			EntityB tempEnt = main.eb.get(i);
			if (Physics.collision(this, tempEnt)) {
				if (tempEnt instanceof PowerUp) {
					c.removeEntity(tempEnt);
					if (((PowerUp) tempEnt).getType() == 0) {
						main.rapidFire = true;
					}
					if (((PowerUp) tempEnt).getType() == 1) {
						main.health = 100;
					}
					if (((PowerUp) tempEnt).getType() == 2) {
						speed = 4;
						speedRunner = true;
					}
				} else {
					c.removeEntity(tempEnt);
					main.health -= 20;
					main.score++;
					Main.enemyKilled++;
				}
			}
		}
	}