Moved the data structures and constants for pathfinding into a single file.