Finish graph implementation but still not detecting win state