fn is_cycle( shortcut: &Shortcut, seen: &mut FastSet<(Point, Point)>, position: Point, direction: Point, ) -> bool