end game if cycle detected