trying to slow down with setInterval over a while loop in astar

doe not seem to have an effect, any hints?