Added out-of-bound assertions for getTileDelta in maze.py