Code updated for importing puzzle from a file.