Changed function create_puzzle definition