Fixed pathfinding more and added metafiles