Added BSP traversing routine