Refactoring Collision.cpp