fixed visited list display bug with iterative

previous method coloured boxes by comparing to prev visited memento. IDS
explores same nodes multiple times so changed the method to allow this