Magnetic Mazes