more complex wire drawing, using AStar algorithm for Java found somewhere on internet (licensed GPL)