[bw] first implementation of powerset puzzle