Vizualisation linked with algo (complete with small bug)