refactored collision.cpp and col_object.cpp