fuck you pseudo-code…
made infinity a very large number
needs way more logging