Maze generator in Swift.