The entrance to Himeji Castle constitutes a veritable spiral maze of walls, gates and baileys, constantly under-fire attackers would need to penetrate and the design is intentional to drive the enemy into narrow passages and areas with dead ends. There are paths that actually take you away from the tower even though you look like you're going towards it, there are paths that correctly go to the main tower but are sloped downward to make intruders think they are going the wrong way