added graph class and flood fill