Got a snapto algorithm. Not sure if it's scaleable tho