Update Cycle-Detection.java