Better cordsToCircle method