hacky fix visited printer. functional, if grid is solvable