ACCESS: Implemented wall checks for pathfinding