working on grid-based pathfinding again