Fixed the problem with the is acyclic.
fixed the acyclic method and changed it from being static.