public void update() {
		if (xPos < 0) {
			xPos = 0;
		} else if (xPos > Main.WIDTH - size) {
			xPos = Main.WIDTH - size;
		}
		if (yPos < 0) {
			yPos = 0;
		} else if (yPos > Main.HEIGHT - size) {
			yPos = Main.HEIGHT - size;
		}
		if (health < 1) {
			alive = false;
			health = 0;
		}
	}