Moved pathfinding to Level