Crude puzzle implementation