dev: Moved 3rd party classes to one place
Perf: The refinery's scan for nearby gems is more efficient. We no longer waste time constructing triangles for cells that don't contain gems.