Try catch for newMaze()