"Crack" bug fix

Bodies to resolve are now sorted via surface area overlap
Moved a lot of stuff to utils