@Override
	public void update() {
		if (bounded) {
			int newy = y;
			newy += down ? 1 : -1;
			if (Game.getInstance().map.hasCollisionExcept(x, newy, this) || Game.getInstance().map.outOfBounds(x, newy)) {
				down = !down;
			} else {
				y = newy;
			}
		} else {
			y += down ? 1 : -1;
			level--;
			if (level == 0) {
				level = levellim;
				down = !down;
			}
		}
	}