solved hashCode problem -> added isVisited() in Vertex class instead of of the colors