An ice puzzle generator