Also move each of the `testCase*` functions from `collide`s scope to file scope. Javascript allows you to create a function anywhere and in some situations its very useful but its slow. If we are going to be using this for label declutter, it needs to be blazing fast for our use cases. Any optimizations here will be appreciated when we prototype this on the CPU before doing anything on the GPU.