Puzzle Nine Game using Swift