converted Coord[] to arraylist<coord> for Path
fixed merge