Improved performance of the pathfinding by initializing the tiles when the level is loaded.