isCycle.cpp finished