Logical Mazes