Implement basic puzzle generator