fixed several bugs with importing the puzzle text