test shortest path algorithm with walls set up