Objective C 3d Maze Solver using BFS