This is a pathfinder. Simply click to place the start point and click again to place the end point. A path will be drawn avoiding all black squares. Do not place the circles outside the grid, it won't work then.
Feel free to use! -Contrary to the title, it's actually very simple and efficient. -Thanks to Wikipedia!