Attempt to make thumbnails transition in and out of an active class on based on path found from solveGrid(). Not complete. Overall code needs refactoring.