Create a path from the start point to the end point, will avoid obstacles, and can be used for AI pathfinding