A star algorithm [Fixes #72246728]