Added 4-way pathfinding