I used some ideas from evolutionary algorithms to improve this pathfinding algorithm from ianthemathmatition. The code should still be relatively easy and simple to use in your projects. Credit if used?