code works with the ui to produce valid paths.
added obstacle code. need to test