I removed the old search and implemented a coloured DFS which can check for a loop and tripod simultaneously