Trying to optimize the pathfinder and also trying to add lightning bolts