added puzzleArray and generateTiles()