Maze Generator + Pathfinder (using A*) in p5.js