Implementing impulse collision response

I'm trying to find the best way to move this to the collision and
physics classes, so as not to be stuck in the main gameloop