Recognizing collisions

I'll finish this up tomorrow