I accidentally wrote the worst pathfinding algorithm
reddit.com